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. Qt Creator displaying project structure wrong
QtWS25 Last Chance

Qt Creator displaying project structure wrong

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
7 Posts 3 Posters 569 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.
  • R Offline
    R Offline
    Redman
    wrote on last edited by Redman
    #1

    7f6f119e-fe2a-4346-b4e8-2aa289ee4c12-image.png

    The .h fiels should be displayed in the same folder as the .cpp. In the filesystem they lay next to each other.

    .pro
    265aeaa3-edac-4423-a77e-012df39cbad2-image.png

    Does anyone know why it behaves like that?

    Pl45m4P 1 Reply Last reply
    0
    • R Redman

      @JonB e276e51c-6603-4669-b1d8-2c1145bead23-image.png

      As you can see, in the other project its working..

      R Offline
      R Offline
      Redman
      wrote on last edited by
      #7

      @Redman

      d50f7132-118e-4ea3-9bc1-e51b7a208b16-image.png

      After creating another folder with files inside QtCreator manages to show the project tree correctly.

      1 Reply Last reply
      0
      • R Redman

        7f6f119e-fe2a-4346-b4e8-2aa289ee4c12-image.png

        The .h fiels should be displayed in the same folder as the .cpp. In the filesystem they lay next to each other.

        .pro
        265aeaa3-edac-4423-a77e-012df39cbad2-image.png

        Does anyone know why it behaves like that?

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

        @Redman said in Qt Creator displaying project structure wrong:

        The .h fiels should be displayed in the same folder as the .cpp. In the filesystem they lay next to each other.

        QtCreator projects by default have a structure where headers are shown separated from source files even when they are in the same directory.

        Read last statement here:

        • https://doc.qt.io/qtcreator/creator-projects-view.html#projects-view-toolbar

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

        ~E. W. Dijkstra

        R 1 Reply Last reply
        1
        • Pl45m4P Pl45m4

          @Redman said in Qt Creator displaying project structure wrong:

          The .h fiels should be displayed in the same folder as the .cpp. In the filesystem they lay next to each other.

          QtCreator projects by default have a structure where headers are shown separated from source files even when they are in the same directory.

          Read last statement here:

          • https://doc.qt.io/qtcreator/creator-projects-view.html#projects-view-toolbar
          R Offline
          R Offline
          Redman
          wrote on last edited by
          #3

          @Pl45m4 59f97715-9384-4546-82f0-b017924e7b7c-image.png
          In my other projects it works as expected.

          JonBJ 1 Reply Last reply
          1
          • R Redman

            @Pl45m4 59f97715-9384-4546-82f0-b017924e7b7c-image.png
            In my other projects it works as expected.

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by JonB
            #4

            @Redman
            If you are not expecting what

            Show Source and Header Groups shows source and header files grouped together in the view, regardless of their location in the file system.

            does when it is switched off, I'm not clear what you expect here?

            EDIT
            OIC, the docs say it's Show ... and yours is Hide..., so you have it on. Does it work, does switching that on & off make any difference?

            R 1 Reply Last reply
            1
            • JonBJ JonB

              @Redman
              If you are not expecting what

              Show Source and Header Groups shows source and header files grouped together in the view, regardless of their location in the file system.

              does when it is switched off, I'm not clear what you expect here?

              EDIT
              OIC, the docs say it's Show ... and yours is Hide..., so you have it on. Does it work, does switching that on & off make any difference?

              R Offline
              R Offline
              Redman
              wrote on last edited by
              #5

              @JonB e276e51c-6603-4669-b1d8-2c1145bead23-image.png

              As you can see, in the other project its working..

              Pl45m4P R 2 Replies Last reply
              0
              • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
              • R Redman

                @JonB e276e51c-6603-4669-b1d8-2c1145bead23-image.png

                As you can see, in the other project its working..

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

                @Redman

                I assume because there are more sub-directories than QtCreator expects to locate the files and to create an internal project structure.


                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
                0
                • R Redman

                  @JonB e276e51c-6603-4669-b1d8-2c1145bead23-image.png

                  As you can see, in the other project its working..

                  R Offline
                  R Offline
                  Redman
                  wrote on last edited by
                  #7

                  @Redman

                  d50f7132-118e-4ea3-9bc1-e51b7a208b16-image.png

                  After creating another folder with files inside QtCreator manages to show the project tree correctly.

                  1 Reply Last reply
                  0
                  • R Redman has marked this topic as solved on

                  • Login

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