Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved QtCreator, project tree sub-folders missing

    General and Desktop
    3
    3
    383
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      AndreasLoew last edited by aha_1980

      I am posting this because I've spent several hours looking for a solution and want to help others to fix this issue without wasting time.

      I am using QtCreator for a long time with a quite complex project including several libraries that are all built from source. The libraries contain sub-folders for modules and are sometimes event nested deeper.

      I was used to see the following layout:

      • library
        • Header Files
          • moduleA
            • fileA.hpp
            • fileB.hpp
          • moduleB
            • fileC.hpp
            • fileD.hpp

      But after re-installing my computer I ended up with the following "flat" structure - which was quite annoying. All structure was gone. All headers and sources of a target show up in one folder:

      • library
        • Header Files
          • fileA.hpp
          • fileB.hpp
          • fileC.hpp
          • fileD.hpp

      I went through the complete preferences 5 times without finding any option. I tried all kinds of stuff, including setting the USE_FOLDERS and source_group in CMake and many others. Nothing changed the file structure back. Simplify Tree made things even worse.

      The solution is: Upgrade QtCreator from 4.11.0 -> 4.11.1 and everything works as expected.

      Pl45m4 aha_1980 2 Replies Last reply Reply Quote 2
      • Pl45m4
        Pl45m4 @AndreasLoew last edited by

        @AndreasLoew

        Mark as solved please, instead of changing the title of your post :)


        If debugging is the process of removing software bugs, then programming must be the process of putting them in.

        ~E. W. Dijkstra

        1 Reply Last reply Reply Quote 1
        • aha_1980
          aha_1980 Lifetime Qt Champion @AndreasLoew last edited by

          Hi @AndreasLoew,

          yeah, that was probably due to QTCREATORBUG-23372.

          Also, I've marked as SOLVED for you, as @Pl45m4 suggested :)

          Regards

          Qt has to stay free or it will die.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post