Git Product home page Git Product logo

qqr.js's Introduction

qqr.js

QML bindings for qr.js Javascript QR code library

To give it a try, just clone this repository and use qmlscene:

$ qmlscene example.qml

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: "")

Dependencies

Qt >= 5.0.

Further reading

For how qr.js works internally and for information about its advanced functionality check the qr.js project wbesite.

License

Just as qr.js, qqr.js is available under the [GPL v3 license] (http://www.gnu.org/copyleft/gpl.html).

qqr.js's People

Contributors

m4rtink avatar

Stargazers

Junlin Lu avatar Forrest avatar  avatar  avatar  avatar Johnny Tong avatar  avatar billy mao avatar 李磊 avatar  avatar William J H avatar ccf19881030.github.io avatar  avatar  avatar Frank Pian avatar  avatar  avatar GoPlayEgg avatar flywind avatar Mehmet Ali Çayhan avatar  avatar Toby avatar  avatar Jing-Wei Guo avatar  avatar  avatar Chris Kaminski avatar  avatar nejat avatar Mikal avatar Michael Fuchs avatar  avatar  avatar  avatar  avatar Craig Matsuura avatar Chih-Lung Yeh avatar Aleksi Suomalainen avatar

Watchers

 avatar James Cloos avatar Craig Matsuura avatar  avatar

qqr.js's Issues

QR code sometimes does not render fully (only mask appears)

I have installed the library under /usr/lib/qt5/qml/com/example/QQCode to use it from multiple apps without copying it everytime. In the other app, the QR-codes are generated correctly, but when opening second app, only the mask is rendered (like in linked picture).

printing the value to log shows that it is properly set. Calling "requestPaint()" again or changing the value does not help, although the width / height of the code can change.

Any ideas what might be going wrong?

incomplete QR code

How to get QrCode to redraw image?

Hello, I'd like the QrCode to hold some variable value. I've tried executing some code like this:

    QRCode {
        id:qrcode
        width:100
        height:100
        value: 'init value'
        onVisibleChanged: {
            console.log(qrcode.value)  // value still equals 'init value'
            qrcode.value = 'new value'
            console.log(qrcode.value) //new value equals 'new value'
            qrcode.requestPaint()
            qrcode.update()
          }
    }

The javascript code is executing as expected, only the new value is never reflected in what is actually drawn. What am I doing wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.