Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Unwanted separation of *.h header and *.cpp source files, leading to ugly doubled folder structure in QtCreator
Qt 6.11 is out! See what's new in the release blog

Unwanted separation of *.h header and *.cpp source files, leading to ugly doubled folder structure in QtCreator

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
4 Posts 3 Posters 225 Views 2 Watching
  • 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.
  • G Offline
    G Offline
    Gerd Brecht
    wrote last edited by Gerd Brecht
    #1

    Hi,

    QtCreator 19.0.0 creates unwanted doubled folder entries to separate *.h headers from *.cpp source files.

    I don't want the separation. I want the structure i gave over disk and cmake and not some artificial spearation by QtCreator.

    The separation was not done in previous version, so i count that as regression.

    Bug3_UnwantedDoubledEntries.png

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote last edited by
      #2

      Hi,

      You should check the Filesystem view .

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Gerd Brecht
        wrote last edited by
        #3

        Hi,

        it helps a bit i guess,

        but now i see unwanted (not source related) folders aswell. And some folder icons are blank/white (inconsistent look).

        Does not reflect my cmake project anymore.

        If you look closely on my first image you see App.h is right next to App.cpp.
        I don't see a reason why it shouldn't work for subfolders.

        cristian-adamC 1 Reply Last reply
        0
        • G Gerd Brecht

          Hi,

          it helps a bit i guess,

          but now i see unwanted (not source related) folders aswell. And some folder icons are blank/white (inconsistent look).

          Does not reflect my cmake project anymore.

          If you look closely on my first image you see App.h is right next to App.cpp.
          I don't see a reason why it shouldn't work for subfolders.

          cristian-adamC Offline
          cristian-adamC Offline
          cristian-adam
          wrote last edited by cristian-adam
          #4

          @Gerd-Brecht This has been reported. See https://qt-project.atlassian.net/browse/QTCREATORBUG-33238

          There is a workaround. Just set the environment variable QTC_PROJECT_NO_COMPRESS to 1 and the old behavior should be brought back.

          Edit: in the case that this doesn't help, please do create a bugreport with an example that reproduces the issue.

          1 Reply Last reply
          2

          • Login

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