Qtqrencode
Qt 5 wrapper and renderer for the qrencode library.
Install / Use
/learn @yoneal/QtqrencodeREADME
qtqrencode
Qt 5 wrapper and renderer for qrencode (QR Code encoding) library.
Build
You will need Qt 5+ and qrencode 3.4+. Clone this repo and build it with Qt's qmake:
sudo apt-get install libqrencode-dev
git clone https://github.com/yoneal/qtqrencode
cd qtqrencode
mkdir build && cd build
qmake -Wall ../qtqrencode.pro
make
# You can install it, if you want..
sudo make install
Or, you can just open the project using Qt Creator.
Usage
Just grab the library, along with the following header files:
- qqrencode.h
- libqtqrencode_global.h
Then include it in your project like so,
LIBS += -lqtqrencode
No need to manually copy the files if you installed it in the system directories..
Profit
#include <qqrencode.h>
...
QQREncode encoder;
encoder.encode(QString("abcdefghijklmnopqrstuvwxyz 1234567890$%*+-./:");
QImage qrcode = encoder.toQImage();
qrcode.scaled(150,150).save("qrcode.jpg","JPG");
See test folder for more examples.
Thanks
Thanks to Kentaro Fukuchi for sharing qrencode.
Related Skills
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
