Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22392

Qt 5.11+: import of a qrc:/directory not working with QtQuickCompiler

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • Qt Creator 4.8.0
    • Quick / QML Support
    • None
    • All

    Description

      Hi folks,

      I want to report a bug: when I use CONFIG += qtquickcompiler in my .pro-file the import statement doesn't work respectively auto-completation fails.

      My working tree looks like this:

       

      /other
      -/qml
      --A.qml
      --qmldir
      /project
      -/myProject
      --.pro
      --/qml
      ---main.qml
      ---qmldir
      

       

      I want to use now A.qml in main.qml with this import statement:

      import "qrc:/other"

      My qrc-file looks like this

       

      
      <!DOCTYPE RCC>
       <RCC version="1.0">
         <qresource prefix="/">
           <file alias="qml/main.qml">main.qml</file>
           <file alias="other/A.qml">../../other/qml/A.qml</file>
       </qresource>
       </RCC>

      If I use CONFIG += qtquickcompiler I get an "Unknown component" M300 failure but the application is working! Without CONFIG += qtquickcompiler everything is alright and auto-completion works.

       

       

      Do you have any idea how to solve this issue, I think that is a bug, because the application is running correctly.

      Thanks!

      Attachments

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

        Activity

          People

            tjenssen Tim Jenssen
            mosa Mosawer Nurzai
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes