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

Importing resource files in the QQmlImportDatabase is not working on Linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.11.1
    • None
    • Linux/Other display system

    Description

      On linux, you cannot add a qrc file to the QML2_IMPORT_PATH environment variable (which you would do to add the import paths to all qml engines).

      The reason is the linux seperator, which is ":". In function QQmlImportDatabase::QQmlImportDatabase(QQmlEngine *e) the qrc files (which look like qrc:\myfolder\etc) are split into qrc and \myfolder\etc.

      This is a problem in case you get an engine for free, where you cannot add an import path yourself (e.g. when using the Qt Virtual Keyboard).

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            slr Sven Leyre
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes