TMS Software released a free component called TTMSFMXZBarReader which will read a QR Code on IOS using Delphi XE5 Firemonkey with two lines of code. It uses the open source ZBar library to do so. There is also a solution for Android which is more convoluted. The Android code to read QR codes seems to be a blend of code from Jim McKeeth, John Whitham, and Thomas K. Jim McKeeth from Embarcadero did a Webinar about gadgets and devices which has a QR reader demo project. Once you get the source code for the Webinar the QR code Android demo is called ‘Delphi Barcode Readers.zip’. John Whitham has a page up where he explains how to read QR codes using the Zxing library. And Thomas K posted some codes in the comments of the TMS Software blog post where he combined the TMS Software component with code from Jim McKeeth to handle IOS and Android with the same component (however it seems like it still need the Zxing library to work). Looks like you’ll have to do your own experimenting to get the Android code to work.
Read the blog post and download the source code for the TMS Software IOS QR code reader component.
Check out the Webinar from Embarcadero for the Android QR code reader source. And the Zxing library way.
Download our mirror of the combo IOS and Android experimental component from Thomas K.
Update: Check out a bar code reader component (uses ZBar) for Windows and OSX from Winsoft.sk.
Need to work with the QRcode, tried using the example of guys and I could not, I’m using delphi XE6.
Have some ready example, and would like to know how to embed also has direct scan on my apk?
Thank you,
I look forward
att
Loester Silva
I also use XE6, and it does not work, it may only work on XE5
It does not work on Delphi xe10 Seattle Up1.
Opens the thing that reads Qr-code or BarCode, the information appears on the screen but does not pass to the text object. The event of the object that receives the data from the Qr-Code or BarCode data of the object is not called.