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

QML files can't import from qrc:/

    XMLWordPrintable

Details

    • Windows
    • b79b9e35334b3bdd41329f2ea74bc82f3f05ae52 (qt/qtdeclarative/5.12)

    Description

      inserting

      import "qrc:/"

      in any qml file will trigger an assert in QQmlEngine.cpp

      QQml_isFileCaseCorrect(const QString &fileName, int lengthIn /* = -1 */)

       

      as it gets called with an empty string, which doesn't get checked:

       

      if (absolute[0] == QLatin1Char(':'))

       

      It is a regression as same source used to work in Qt 5.9

       

      A workaround for now is to

      import "qrc:/."

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            buldozer Toni Rutar Lokar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes