当前位置:网站首页>QT use qzxing to generate QR code
QT use qzxing to generate QR code
2022-07-03 15:24:00 【Happinessคิดถึง】
**
Update time :2022-06-21
**
Two dimensional code is also called two dimensional barcode , Common QR codes are QR Code,QR Full name Quick Response, It is a super popular coding method on mobile devices in recent years , It's better than the traditional Bar Code Barcode can store more information , Can also represent more data types .
Two dimensional bar code / QR code (2-dimensional bar code) It is to use a specific geometric figure in a plane according to a certain rule ( Two dimensional ) The distribution of the 、 Black and white 、 Graph recording data symbol information ; In code making, it is ingenious to use the “0”、“1” The concept of bitstream , A number of geometric shapes corresponding to binary are used to represent literal numerical information , Through image input device or photoelectric scanning device to read automatically to achieve automatic information processing : It has some common features of bar code technology : Each code system has its own specific character set ; Each character has a certain width ; It has certain verification function, etc . At the same time, it also has the function of automatic identification of different information 、 And processing the rotation change point of the graph .
Often applied to :
● information acquisition ( Business card 、 Map 、WIFI password 、 Information )
● Website jump ( Jump to Weibo 、 Mobile website 、 Website )
● Advertising push ( User scan code , Browse the videos pushed by the merchants directly 、 Audio advertising )
● Mobile e-commerce ( User scan code 、 Mobile phone direct shopping order )
● Anti counterfeiting tracing ( User scan code 、 You can see the place of production ; At the same time, the backstage can obtain the final consumption place )
● Special promotion ( User scan code , Download e-coupons , Luck draw )
● Member management ( Get e-member information on the user's mobile phone 、VIP service )
● Mobile payment ( Scan product QR code , Pay through the mobile channel provided by bank or third party payment )
● To login ( Scan QR code to log in each website or software )
Reference resources :
qt Generate qr code
qzxing Download address :
https://github.com/ftylitak/qzxing
Add... After downloading scr file
Because the source code is in this file , So import this file .
pro File to add pri file .
include(qzxing/qzxing.pri)
Here I put src The file name is changed to Oh qzxing
QR code usage - Encoding and decoding
Add header file .
#include “qzxing/QZXing.h”
Code :
// code
QImage img = QZXing::encodeData("https://blog.csdn.net/weixin_44353958",QZXing::EncoderFormat_QR_CODE);
ui->label_4->setPixmap(QPixmap::fromImage(img));
ui->label_4->setScaledContents(true);// The adaptive
// decode
// QZXing decoder;
// //mandatory settings
// decoder.setDecoder( QZXing::DecoderFormat_QR_CODE | QZXing::DecoderFormat_EAN_13 );
// //optional settings
// //decoder.setSourceFilterType(QZXing::SourceFilter_ImageNormal | QZXing::SourceFilter_ImageInverted);
// decoder.setSourceFilterType(QZXing::SourceFilter_ImageNormal);
// decoder.setTryHarderBehaviour(QZXing::TryHarderBehaviour_ThoroughScanning |
// QZXing::TryHarderBehaviour_Rotate);
// //trigger decode
// QString result = decoder.decodeImage(img);
// qDebug()<<"result"<<result;

边栏推荐
- Matlab r2011b neural network toolbox precautions
- Reentrantlock usage and source code analysis
- [cloud native training camp] module 7 kubernetes control plane component: scheduler and controller
- 驱动与应用程序通信
- 自定义注解
- CString在多线程中的问题
- 高并发下之redis锁优化实战
- [attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer
- Puppet automatic operation and maintenance troubleshooting cases
- Apache ant extension tutorial
猜你喜欢

Leasing cases of the implementation of the new regulations on the rental of jointly owned houses in Beijing

【可能是全中文网最全】pushgateway入门笔记

Jvm-02-class loading subsystem

Jvm-04-runtime data area heap, method area

视觉上位系统设计开发(halcon-winform)-4.通信管理

Final review points of human-computer interaction

WinDbg分析dump文件

【Transformer】入门篇-哈佛Harvard NLP的原作者在2018年初以逐行实现的形式呈现了论文The Annotated Transformer

What is one hot encoding? In pytoch, there are two ways to turn label into one hot coding

第04章_逻辑架构
随机推荐
北京共有产权房出租新规实施的租赁案例
[pytorch learning notes] datasets and dataloaders
Use of Tex editor
函数栈帧的创建和销毁
Qt常用语句备忘
Visual upper system design and development (Halcon WinForm) -1 Process node design
[pytorch learning notes] transforms
Tensorflow realizes verification code recognition (I)
Reentrantlock usage and source code analysis
【云原生训练营】模块八 Kubernetes 生命周期管理和服务发现
Characteristics of MySQL InnoDB storage engine -- Analysis of row lock
Construction of operation and maintenance system
Nppexec get process return code
[combinatorics] combinatorial identities (recursive combinatorial identities | sum of variable terms | simple combinatorial identities and | sum of variable terms | staggered sums of combinatorial ide
WinDbg分析dump文件
Digital image processing -- popular Canny edge detection
Kubernetes will show you from beginning to end
redis缓存穿透,缓存击穿,缓存雪崩解决方案
C语言刷题~Leetcode与牛客网简单题
Stress test WebService with JMeter