https://github.com/yushulx/qt-qml-qr-code-scanner
Multiple barcode QR code scanner built with Qt6 and Dynamsoft Barcode Reader
https://github.com/yushulx/qt-qml-qr-code-scanner
android barcode cpp datamatrix ios pdf417 qml qrcode qt qt6 windows
Last synced: 4 months ago
JSON representation
Multiple barcode QR code scanner built with Qt6 and Dynamsoft Barcode Reader
- Host: GitHub
- URL: https://github.com/yushulx/qt-qml-qr-code-scanner
- Owner: yushulx
- Created: 2021-11-05T08:27:54.000Z (over 4 years ago)
- Default Branch: qt6
- Last Pushed: 2024-04-09T06:45:31.000Z (about 2 years ago)
- Last Synced: 2025-07-05T12:46:27.023Z (12 months ago)
- Topics: android, barcode, cpp, datamatrix, ios, pdf417, qml, qrcode, qt, qt6, windows
- Language: C
- Homepage: https://www.dynamsoft.com/codepool/qt-qml-qr-code-scanner.html
- Size: 59.6 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Qt6 Demo: Barcode QR Code Scanner
A cross-platform demo of a barcode and QR code scanner developed with **Qt6** and [Dynamsoft Barcode Reader](https://www.dynamsoft.com/barcode-reader/sdk-mobile/?utm_content=nav-products).
## Supported Platforms
- Windows
- Android
- iOS
1. Find the identity:
```bash
security find-identity -v -p codesigning
```
2. Replace the `IDENTITY` with your own and sign the frameworks:
```bash
/usr/bin/codesign --force --sign "IDENTITY" --timestamp=none --deep libs/ios/DynamsoftBarcodeReader.framework
/usr/bin/codesign --force --sign "IDENTITY" --timestamp=none --deep libs/ios/bridge.framework
```
## Prerequisites
- [Qt Online Installer](https://www.qt.io/download-qt-installer-oss)
- [Dynamsoft Barcode Reader Trial License](https://www.dynamsoft.com/customer/license/trialLicense/?product=dbr)
## Usage
1. Load the project into Qt Creator (**Windows** or **macOS**) via `CMakeLists.txt` and configure the build environment as follows:
**Windows**

**macOS**
1. Set the license key in `FrameProcessor.cpp`:
```cpp
DBR_InitLicense("LICENSE-KEY", errorMsgBuffer, 512);
```
2. Run the project.
**Windows**
**Android**

**iOS**

## Blog
- [Building a Barcode and QR Code Scanner for Windows and Android with Qt6](https://www.dynamsoft.com/codepool/qt-qml-qr-code-scanner.html)
- [Integrating Third-Party iOS Frameworks into a Qt6 Barcode and QR Code Scanner](https://www.dynamsoft.com/codepool/qt6-barcode-scanner-link-ios-framework.html)