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

Qml Items unknown (M300) with qrc in different directories with Cmake

XMLWordPrintable

    • Linux/X11, macOS, Windows

      Having multiple qrc files that contain items with the same prefix in different directories seems to confuse Qt Creator when using CMake (works fine with qmake). Program builds and runs fine, but editor says M300 unknown component when using CMake.

      Project:
      /qml.qrc (Prefix: /)
       - main.qml
       - SameQrcItem.qml
      /SameLevel.qrc (Prefix: /)
       - SameLevelQrcItem.qml
      /SubDir/SubDir.qrc (Prefix: /)
       - SubDirItem.qml

      Adding all ...Items in main.qml gives a M300 warning for SubDirItem when using CMake. See main.qml in attached project zip, CMakeLists.txt and .pro file included.

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

            cadam Cristian Adam
            inikofdoom Inik Doom
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes