Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to remove the Headers and Sources folder name appear in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

How to remove the Headers and Sources folder name appear in Qt Creator

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
9 Posts 5 Posters 6.1k Views 1 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.
  • M Offline
    M Offline
    Madhu M S
    wrote on last edited by
    #1

    Hello,

    I created the new project in Qt creator. Once i create the new project the header and source folder is automatically created. My problem is how to remove the header and source folder name appear in Qt creator

    Below is the screenshot

    screenshot

    Regards,
    Madhu

    1 Reply Last reply
    0
    • Vinod KuntojiV Offline
      Vinod KuntojiV Offline
      Vinod Kuntoji
      wrote on last edited by
      #2

      @Madhu-M-S ,

      Why do you want to remove?

      C++, Qt, Qt Quick Developer,
      PthinkS, Bangalore

      1 Reply Last reply
      2
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        Enabled simplify tree
        alt text

        1 Reply Last reply
        3
        • M Offline
          M Offline
          Madhu M S
          wrote on last edited by
          #4

          Hi,

          I created two folders With name as Headers and Sources in my directory, what i want is the creator should show My directory folders (Headers, Sources). But it showing both that is, my directory folders as well as automatically created by creator. How to solve this problem

          below is the screenshot

          Screenshot

          Regards,
          Madhu

          mrjjM 1 Reply Last reply
          0
          • M Madhu M S

            Hi,

            I created two folders With name as Headers and Sources in my directory, what i want is the creator should show My directory folders (Headers, Sources). But it showing both that is, my directory folders as well as automatically created by creator. How to solve this problem

            below is the screenshot

            Screenshot

            Regards,
            Madhu

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Madhu-M-S
            If they are in subfolder, the subfolders will be shown.
            Not possible to disable as far as i know.

            1 Reply Last reply
            1
            • M Offline
              M Offline
              Madhu M S
              wrote on last edited by
              #6

              Hi,

              I want to been shown sub folders, but how can i disable Qt creator created subfolders

              E 1 Reply Last reply
              0
              • M Madhu M S

                Hi,

                I want to been shown sub folders, but how can i disable Qt creator created subfolders

                E Offline
                E Offline
                Eeli K
                wrote on last edited by
                #7

                @Madhu-M-S You can try "File System" view instead of "Projects" view. It works well if you have designed the folder hierachy so that everything is logically arranged in a normal file system viewer.

                1 Reply Last reply
                1
                • Vinod KuntojiV Offline
                  Vinod KuntojiV Offline
                  Vinod Kuntoji
                  wrote on last edited by
                  #8

                  @Madhu-M-S ,

                  Do you want to create your own subfolder?

                  C++, Qt, Qt Quick Developer,
                  PthinkS, Bangalore

                  1 Reply Last reply
                  0
                  • hungerH Offline
                    hungerH Offline
                    hunger
                    wrote on last edited by
                    #9

                    Creator's project view shows how your build system thinks your project is structured. For qmake projects it will list the files you list as "HEADERS" in your .pro-file in a (virtual) folder called Headers, files listed in "SOURCES" are in a virtual folder called Sources, all below the .pro-file that contains the entries, etc.

                    Creator needs such a view so that you can edit the build system structure itself by adding/removing files, etc. You need to see where those files are in your .pro/.pri-files and how the individual .pro/.pri-files relate to each other for that. And that is exactly what the projects view offers: There is little you can do to change that with "simplify tree" offering a somewhat more simple view on the same data.

                    For navigation purposes you can try the filesystem view, which is straight files and folders on the disk. Or you just use Ctrl-K a lot to jump around your files and stop caring where the files are actually located on disk. I personally have never seen the need to have a navigation-focused view in the sidebar: 99% of the time I just jump to the places I care for using Ctrl-K which I find much faster to do than clicking through a tree of files. The 1% that is left is when I work with the build system itself and for that the projects view works well for me.

                    Please feel free to file bug reports at bugreports.qt.io if you use Creator differently. I actually have a request open about a more configurable tree view for navigation purposes, feel free to vote on those up. It seems to be rather popular with windows users for some reason. Is that how you navigate in visual studio?

                    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