Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Posts: 49
Registered: ‎11-11-2012
My Device: z10 LE
My Carrier: Digi
Accepted Solution

Encode / generate QRCode/barcode



any starting point how I could encode/generate a qrcode as an image to display in QML?



James Tan
Eating my dog food - TripLogger, my 1st bb10 app.
Posts: 1,008
Registered: ‎12-12-2010
My Device: Passport (Red Limited Edition)
My Carrier: Mobile Vikings

Re: Encode / generate QRCode/barcode

There must be some C++ libraries out there, alas I don't know them. The other option is to use an online API (like https://www.mashape.com/cingusoft/barcode-generator-2-0 etc).
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
Posts: 230
Registered: ‎01-12-2013
My Device: z30
My Carrier: Mobile Vikings

Re: Encode / generate QRCode/barcode

You can have a look at Zxing. They have developed a QR generator/decoder for Java but they also created a partial C++ port. Maybe it helps you a little.



BB10-OAuth: GitHub
Posts: 27
Registered: ‎12-11-2012
My Device: Blackberry Z10
My Carrier: Viettel

Re: Encode / generate QRCode/barcode

Have you solved your problem? This is a easy way to show QrCode.


QrCodeView {
	id: qrCode
	data: "Your Data Here"
	preferredWidth: 300
	preferredHeight: 300
	horizontalAlignment: HorizontalAlignment.Center

 You need to import

import bb.cascades.multimedia 1.0
import bb.multimedia 1.0

 and add the following line to your .pro file:

LIBS += -lbbcascadesmultimedia



Posts: 49
Registered: ‎11-11-2012
My Device: z10 LE
My Carrier: Digi

Re: Encode / generate QRCode/barcode

I've tried using c++ libraries but am not skilled enough to take it off.

Used the online API approach e.g. http://api.qrserver.com and it works though webview is unpredictable at times.

The official QrCodeView works without network connectivity and suits my purpose.

Thanks everyone for the ideas!

James Tan
Eating my dog food - TripLogger, my 1st bb10 app.
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Encode / generate QRCode/barcode

I'm surprised no-one mentioned there is actually a BarCodeViewer as well as other associated classes for Cascades itself...





Does need 10.2 though.

If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
New Developer
Posts: 3
Registered: ‎06-10-2014
My Device: non-BlackBerry user
My Carrier: non-BlackBerry user

Re: Encode / generate QRCode/barcode

have you ever done this , java qr code generation