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

边栏推荐
- Mysql报错:[ERROR] mysqld: File ‘./mysql-bin.010228‘ not found (Errcode: 2 “No such file or directory“)
- Redis主从、哨兵、集群模式介绍
- [pytorch learning notes] transforms
- Markdown file titles are all reduced by one level
- The state does not change after the assignment of El switch
- 函数栈帧的创建和销毁
- el-switch 赋值后状态不变化
- Kubernetes带你从头到尾捋一遍
- Kubernetes vous emmène du début à la fin
- What is one hot encoding? In pytoch, there are two ways to turn label into one hot coding
猜你喜欢

秒杀系统1-登录功能

WinDbg分析dump文件

Basic SQL tutorial

Introduction to redis master-slave, sentinel and cluster mode

C语言刷题~Leetcode与牛客网简单题
![[pytorch learning notes] datasets and dataloaders](/img/c0/9cd539caff34db3cccc44505bbe3c5.png)
[pytorch learning notes] datasets and dataloaders

Construction of operation and maintenance system

Jvm-08-garbage collector

Baidu AI Cloud helps Shizuishan upgrade the smart health care model of "Internet + elderly care services"

Functional modules and application scenarios covered by the productization of user portraits
随机推荐
Concurrency-02-visibility, atomicity, orderliness, volatile, CAS, atomic class, unsafe
Dataframe returns the whole row according to the value
Nppexec get process return code
Digital image processing -- popular Canny edge detection
Popular understanding of linear regression (I)
运维体系的构建
Puppet automatic operation and maintenance troubleshooting cases
redis单线程问题强制梳理门外汉扫盲
Tensorflow realizes verification code recognition (II)
Jvm-03-runtime data area PC, stack, local method stack
基于SVN分支开发模式流程浅析
【pytorch学习笔记】Transforms
[transform] [practice] use pytoch's torch nn. Multiheadattention to realize self attention
Functional modules and application scenarios covered by the productization of user portraits
Relationship between truncated random distribution and original distribution
What are the composite types of Blackhorse Clickhouse, an OLAP database recognized in the industry
视觉上位系统设计开发(halcon-winform)-6.节点与宫格
redis缓存穿透,缓存击穿,缓存雪崩解决方案
socket.io搭建分布式Web推送服务器
Redis主从、哨兵、集群模式介绍