当前位置:网站首页>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;

边栏推荐
- Dataframe returns the whole row according to the value
- 秒殺系統3-商品列錶和商品詳情
- Visual upper system design and development (Halcon WinForm) -2 Global variable design
- Jvm-05-object, direct memory, string constant pool
- Use of Tex editor
- Tensorflow realizes verification code recognition (I)
- MySQL reports an error: [error] mysqld: file '/ mysql-bin. 010228‘ not found (Errcode: 2 “No such file or directory“)
- Didi off the shelf! Data security is national security
- Jvm-08-garbage collector
- Redis single thread problem forced sorting layman literacy
猜你喜欢
![[pytorch learning notes] datasets and dataloaders](/img/c0/9cd539caff34db3cccc44505bbe3c5.png)
[pytorch learning notes] datasets and dataloaders
![MySQL reports an error: [error] mysqld: file '/ mysql-bin. 010228‘ not found (Errcode: 2 “No such file or directory“)](/img/cd/2e4f5884d034ff704809f476bda288.png)
MySQL reports an error: [error] mysqld: file '/ mysql-bin. 010228‘ not found (Errcode: 2 “No such file or directory“)

Didi off the shelf! Data security is national security

运维体系的构建

Introduction, use and principle of synchronized

秒杀系统3-商品列表和商品详情
![[transformer] Introduction - the original author of Harvard NLP presented the annotated transformer in the form of line by line implementation in early 2018](/img/2b/b23aeab584f89be6678c0fe059d4b6.png)
[transformer] Introduction - the original author of Harvard NLP presented the annotated transformer in the form of line by line implementation in early 2018
![[cloud native training camp] module 7 kubernetes control plane component: scheduler and controller](/img/a4/2156b61fbf50db65fdf59c8f5538f8.png)
[cloud native training camp] module 7 kubernetes control plane component: scheduler and controller

Dataframe returns the whole row according to the value

Detailed pointer advanced 2
随机推荐
基础SQL教程
Search in the two-dimensional array of leetcode sword offer (10)
Detailed pointer advanced 2
What is embedding (encoding an object into a low dimensional dense vector), NN in pytorch Principle and application of embedding
Visual host system design and development (Halcon WinForm)
WinDbg分析dump文件
QT common sentence notes
【日常训练】395. 至少有 K 个重复字符的最长子串
Kubernetes vous emmène du début à la fin
高并发下之redis锁优化实战
Jvm-05-object, direct memory, string constant pool
运维体系的构建
SQL server installation location cannot be changed
详解指针进阶2
互斥对象与临界区的区别
Redis single thread problem forced sorting layman literacy
String functions that you need to know
Custom annotation
视觉上位系统设计开发(halcon-winform)-1.流程节点设计
[Yu Yue education] scientific computing and MATLAB language reference materials of Central South University