QML wrapper library for ZXing create QRCode
Add the following line to your .pro file.
include(QRCode/QRCode.pri)
Add the following lines to your main.cpp file.
#include <RaskQRCode>
...
QQmlApplicationEngine engine;
Rask::QRCode::registerImageProvider(engine);
Add the following lines to your *.qml file.
Image {
id: qrCode
fillMode: Image.PreserveAspectFit
source: "image://QRCode/[Your text]"
sourceSize.width: 200
sourceSize.height: 200
anchors.horizontalCenter: parent.horizontalCenter
}