Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtCreator, project tree sub-folders missing
QtWS25 Last Chance

QtCreator, project tree sub-folders missing

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 3 Posters 813 Views
  • 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 Offline
    A Offline
    AndreasLoew
    wrote on last edited by aha_1980
    #1

    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.

    Pl45m4P aha_1980A 2 Replies Last reply
    2
    • A AndreasLoew

      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.

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @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
      1
      • A AndreasLoew

        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.

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        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
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved