Git Product home page Git Product logo

jqqrcode's Introduction

介绍

JQQRCode,是一个给Qt开发的,二维码相关功能的封装。

其中解析/扫描二维码部分底层为zxing,生成/制作二维码部分底层为qrencode。

使用举例

  • 从图片解析二维码
const QImage testImage( ":/images/test.png" );
JQQRCodeReader qrCodeReader;
qDebug() << "decodeImage return:" << qrCodeReader.decodeImage( testImage );
  • 生成二维码
const auto &&qrCodeImage = JQQRCodeWriter::makeQRcode( "QRCodeWriter" );
qDebug() << qrCodeImage;

系统要求

编译本工程,请使用支持C++11的编译器

目前我测试了macOS、iOS、Windows (MinGW & VS2013)和Android,均正常工作

测试时使用的是Qt5.8

老版本Qt在iOS上可能有问题

理论上可以部署到任何Qt支持的平台上。

注意:在iOS使用的时候,一定要给Info.plist加上NSCameraUsageDescription,不然程序一调用摄像头就崩溃

本库源码均已开源在了GitHub上。

GitHub地址:https://github.com/188080501/JQQRCode

方便的话,帮我点个星星,或者反馈一下使用意见,这是对我莫大的帮助。

若你遇到问题、有了更好的建议或者想要一些新功能,都可以直接在GitHub上提交Issues:https://github.com/188080501/JQQRCode/issues

jqqrcode's People

Contributors

188080501 avatar

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.