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

Qt Creator is displaying qrc files (along with their content) in "source" directory

    XMLWordPrintable

Details

    • 86e16c9e142c9b8bc7ae7f98aeb51892eab36fa3, qtdeclarative/f88ac9d7e35167a954881e5c81e1a4ce543f54ed

    Description

      I have a strange problem, that is occuring in many of my projects that Qt Creator is listing my .qrc files and their contents as "source" and is displaying them along with .cpp files ("Project" tab).

      I am not sure but I have found two things that may be the cause of the problem:

      • adding CONFIG += qtquickcompiler to .pro file
      • adding to RESOURCES in .pro file a .qrc file that is outside of the project directory. Not sure if the path needs to start with "../" or "../../" to cause the problem.

      In the attached zip .pro file is located in A/AA/AAA directory. The project works well with qtquickcompiler disabled (on Debug), but does not otherwise (on Release). Switch build types to see results.

      Attachments

        1. qtdiag_mac.txt
          5 kB
        2. qtdiag_nuc.txt
          5 kB
        3. testQrc.zip
          781 kB

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-17521
          # Subject Branch Project Status CR V

          Activity

            People

              kandeler Christian Kandeler
              fhazubski Filip Hazubski
              Votes:
              5 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes