ftylitak / qzxing

Qt/QML wrapper library for the ZXing library. 1D/2D barcode image processing library
Apache License 2.0
624 stars 343 forks source link

module "QZXing" is not installed #180

Closed senlinmuvs closed 4 years ago

senlinmuvs commented 4 years ago

Refer to QZXingLive written:

in *.pro:

CONFIG += qzxing_multimedia \
          enable_decoder_1d_barcodes \
          enable_decoder_qr_code \
          enable_decoder_data_matrix \
          enable_decoder_aztec \
          enable_decoder_pdf17
CONFIG += qzxing_qml
...
include(QZXing/QZXing.pri)

in main.cpp:

    QZXing::registerQMLTypes();
    QZXing::registerQMLImageProvider(engine);

in *.qml:

import QZXing 2.3
...

Error

W mpk     : QQmlApplicationEngine failed to load component
W mpk     : assets:/qml/Main.qml:295 Type Scan unavailable
W mpk     : assets:/qml/Scan.qml:6 module "QZXing" is not installed
senlinmuvs commented 4 years ago

It's just that this error occurred in Felgo, and it was no problem to run directly on the phone. It should be Felgo's problem.