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

边栏推荐
- Visual upper system design and development (Halcon WinForm) -5 camera
- Mysql报错:[ERROR] mysqld: File ‘./mysql-bin.010228‘ not found (Errcode: 2 “No such file or directory“)
- CString在多线程中的问题
- Visual upper system design and development (Halcon WinForm) -4 Communication management
- 【可能是全中文网最全】pushgateway入门笔记
- 基于SVN分支开发模式流程浅析
- Popular understanding of decision tree ID3
- Dataframe returns the whole row according to the value
- 整形和浮点型是如何在内存中的存储
- VS2017通过IP调试驱动(双机调试)
猜你喜欢

Leasing cases of the implementation of the new regulations on the rental of jointly owned houses in Beijing
![[attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer](/img/9b/6ca8375ef8689a80d437665909ae30.png)
[attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer

软件逆向破解入门系列(1)—xdbg32/64的常见配置及功能窗口

详解指针进阶1

Redis主从、哨兵、集群模式介绍

How to use annotations such as @notnull to verify and handle global exceptions

Construction of operation and maintenance system

需要知道的字符串函数
![[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

【pytorch学习笔记】Datasets and Dataloaders
随机推荐
Nppexec get process return code
阿特拉斯atlas扭矩枪 USB通讯教程基于MTCOM
【可能是全中文网最全】pushgateway入门笔记
String functions that you need to know
Calibre LVL
秒杀系统2-Redis解决分布式Session问题
[set theory] inclusion exclusion principle (complex example)
[probably the most complete in Chinese] pushgateway entry notes
Summary of JVM knowledge points
WinDbg分析dump文件
Apache ant extension tutorial
运维体系的构建
官网MapReduce实例代码详细批注
C语言刷题~Leetcode与牛客网简单题
【Transformer】入门篇-哈佛Harvard NLP的原作者在2018年初以逐行实现的形式呈现了论文The Annotated Transformer
el-switch 赋值后状态不变化
MySQL reports an error: [error] mysqld: file '/ mysql-bin. 010228‘ not found (Errcode: 2 “No such file or directory“)
Kubernetes advanced training camp pod Foundation
秒殺系統3-商品列錶和商品詳情
Visual upper system design and development (Halcon WinForm) -3 Image control