Qt QR Code Generator is a simple C++ class that uses the qrcodegen library to generate QR codes from QStrings in Qt applications.
- Copy the Qt-QrCodeGenerator folder in your
lib
folder. - Include the Qt-QrCodeGenerator project include (pri) file using the
include()
qmake function. - Use the
QrCodeGenerator
class in your code:
#include <QrCodeGenerator>
QrCodeGenerator generator;
QString data = "https://www.example.com";
QImage qrCodeImage = generator.generateQr(data);
- That's all! Check the example project as a reference for your project if needed.
This project is licensed under the MIT License. See the LICENSE file for details.