Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2.0 RC
-
None
-
Archlinux
-
-
7a7064e14f094e843e1ee832cc927e86f887621a 47cb1bb53f4882ca7f00e2286f279279d8b74715 d05da5f306c7c30616d33fe540e64dd2fee46924 b1fc45dbbfcca3ed0c489c01a5faa2f87ed09a35
Description
I tried build application as described at one of new posts in blog about qt_add_qml_module with CMake. It works on desktop linux but it fails on Android with error:
W libqt_add_qml_module_test_arm64-v8a.so: qrc:/Test/main.qml:11:3: ExtraButton is not a type
Also I found out that without that 2 modifications QtCreator doesn't see plugins declared by qt_add_qml_module:
// CMakeList.txt from executable
set(QML_IMPORT_PATH ${CMAKE_BINARY_DIR} CACHE STRING "" FORCE)
// CMakeList.txt from sub-project I had to add DESIGNER_SUPPORTED option which was not described as required qt_add_qml_module(test_extra URI "TestExtra" VERSION 1.0 QML_FILES ExtraSingleton.qml ExtraButton.qml DESIGNER_SUPPORTED )
I attach minimal working project