We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2015-02-26 22:06:56 +0200

qqr.js: a QtQuick QRCode display element

Qqr,js is a QtQuick element powered by qr.js. and makes it easy to display QR codes in a QtQuick application GUI. It has no external dependencies and does not even need to be compiled as all the code is either QML or Javascript. You can basically just drop it into your project and start using it.

Source code

https://github.com/M4rtinK/qqr.js

Example QML code

import QtQuick 2.0

QRCode {
    width : 320
    height : 320
    value : "http://www.modrana.org"
}

QRCode element properties

  • background : background colour to be used (string, default: "white")
  • foreground : foreground colour to be used (string, default: "black")
  • level : ECC level to be applied (e.g. L, M, Q, H) (string, default: "L")
  • value : value to be encoded in the generated QR code (string, default: "")

qqr.js: a QtQuick QRCode display element

Qqr,js Qqr.js is a QtQuick element powered by qr.js. and makes it easy to display QR codes in a QtQuick application GUI. It has no external dependencies and does not even need to be compiled as all the code is either QML or Javascript. You can basically just drop it into your project and start using it.

Source code

https://github.com/M4rtinK/qqr.js

Example QML code

import QtQuick 2.0

QRCode {
    width : 320
    height : 320
    value : "http://www.modrana.org"
}

QRCode element properties

  • background : background colour to be used (string, default: "white")
  • foreground : foreground colour to be used (string, default: "black")
  • level : ECC level to be applied (e.g. L, M, Q, H) (string, default: "L")
  • value : value to be encoded in the generated QR code (string, default: "")