Skip to content

rask-project/QRCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QRCode

QML wrapper library for ZXing create QRCode

How to include

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
}

About

QML wrapper library for ZXing create QRCode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published