当前位置:网站首页>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;
边栏推荐
- 互斥对象与临界区的区别
- 在MapReduce中利用MultipleOutputs输出多个文件
- MySQL reports an error: [error] mysqld: file '/ mysql-bin. 010228‘ not found (Errcode: 2 “No such file or directory“)
- [pytorch learning notes] transforms
- Tensorflow realizes verification code recognition (II)
- What is one hot encoding? In pytoch, there are two ways to turn label into one hot coding
- Kubernetes will show you from beginning to end
- Jvm-06-execution engine
- Jvm-05-object, direct memory, string constant pool
- Visual host system design and development (Halcon WinForm)
猜你喜欢
Solve the problem that pushgateway data will be overwritten by multiple push
mysql innodb 存储引擎的特性—行锁剖析
Seckill system 3- product list and product details
Baidu AI Cloud helps Shizuishan upgrade the smart health care model of "Internet + elderly care services"
What are the composite types of Blackhorse Clickhouse, an OLAP database recognized in the industry
VS2017通过IP调试驱动(双机调试)
Jvm-06-execution engine
运维体系的构建
求字符串函数和长度不受限制的字符串函数的详解
北京共有产权房出租新规实施的租赁案例
随机推荐
Calibre LVL
[combinatorics] permutation and combination (set permutation, step-by-step processing example)
[cloud native training camp] module 7 kubernetes control plane component: scheduler and controller
运维体系的构建
使用JMeter对WebService进行压力测试
Visual host system design and development (Halcon WinForm)
Popular understanding of decision tree ID3
The markdown file obtains the pictures of the network and stores them locally and modifies the URL
Jvm-03-runtime data area PC, stack, local method stack
Redis lock Optimization Practice issued by gaobingfa
The state does not change after the assignment of El switch
Visual upper system design and development (Halcon WinForm) -1 Process node design
视觉上位系统设计开发(halcon-winform)-2.全局变量设计
需要知道的字符串函数
通过进程PID获取可执行文件路径(QueryFullProcessImageName)
Popular understanding of ovo and ovr
Atlas atlas torque gun USB communication tutorial based on mtcom
MySQL reports an error: [error] mysqld: file '/ mysql-bin. 010228‘ not found (Errcode: 2 “No such file or directory“)
视觉上位系统设计开发(halcon-winform)-3.图像控件
Idea does not specify an output path for the module