qqr.js: a QtQuick QRCode display element

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

MartinK gravatar image

updated 2015-02-27 12:47:45 +0200

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


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: "")
edit retag flag offensive close delete