Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
6.8.2
-
-
2025wk24s2QtforAndroid
Description
Setting QML_IMPORT_PATH using qputenv has no effect on android. This is problematic with Qt VKB because it searches for styles from the import path. Setting QML_IMPORT_PATH on desktop allows a style to be found but when deploying on android the style will no longer be found due to the import path never being added to the engine.
Steps to reproduce the issue:
- Run the sample on desktop. Look at the output (should contain QML_IMPORT_PATH[=qrc:/kbstyles] val)
ENGINE IMPORT PATH LIST: QList("C:/Users/mipernu/Downloads/basic/basic/build/Desktop_Qt_6_8_2_MinGW_64_bit-Debug/debug", "qrc:/qt-project.org/imports", "qrc:/qt/qml", "qrc:/kbstyles", "C:/Qt/6.8.2/mingw_64/qml")
- Run the sample on android. Look at the output (QML_IMPORT_PATH is missing).
D/default (21546): ENGINE IMPORT PATH LIST: QList("qrc:/android_rcc_bundle/qml", "/data/app/~~G4sIznbeJD3f6-MWgAJ1yw==/org.qtproject.example.basic-vCC0g_lS-6UN--Tvkqz5Lw==/lib/x86", "qrc:/qt-project.org/imports", "qrc:/qt/qml")