An open API service indexing awesome lists of open source software.

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

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**

![Qt project for Windows and Android](https://www.dynamsoft.com/codepool/img/2024/04/qt6-cmake-config.png)

**macOS**

Qt Creator for macOS

1. Set the license key in `FrameProcessor.cpp`:

```cpp
DBR_InitLicense("LICENSE-KEY", errorMsgBuffer, 512);
```

2. Run the project.

**Windows**

Qt QR Code scanner for Windows

**Android**

Qt QR Code scanner for Android

**iOS**

Qt QR Code scanner for 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)