Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-136125

QML_IMPORT_PATH has no effect on android

    XMLWordPrintable

Details

    • Android
    • 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")

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtqmlteam Qt Qml Team User
            miikapernu Miika Pernu
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes