Skip to content

yushulx/Qt-QML-QR-code-scanner

Repository files navigation

Qt6 Demo: Barcode QR Code Scanner

A cross-platform demo of a barcode and QR code scanner developed with Qt6 and Dynamsoft Barcode Reader.

Supported Platforms

  • Windows

  • Android

  • iOS

    1. Find the identity:

      security find-identity -v -p codesigning
    2. Replace the IDENTITY with your own and sign the frameworks:

      /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

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

    macOS

    Qt Creator for macOS
  2. Set the license key in FrameProcessor.cpp:

    DBR_InitLicense("LICENSE-KEY", errorMsgBuffer, 512);
  3. 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