How "hide" some files in creator tree?
-
I just wondering. Is it a way to remove some files in project tree so they would'nt be seen during developing?
For example i have necessary, but very simple class for console, with UI and C++ file, but i never use it, it made once, set it at the beginning, and for the rest of times i don't wanna see it(probably).I'm asking, because i skipping and running between h/cpp files in the tree frequently, and sometimes such a files just an obstacles.
-
If it's part of the build, it's going to be displayed in tree view. I don't think there is any way to hide it.
I have some suggestions:
- use different file view (like "Open Documents") - it won't show
console.h
until you manually open it - use filters->Simplify Tree to get a more condensed view
- there is one filter I don't understand: filters->Hide disabled files. Maybe this will help you somehow?
- use different file view (like "Open Documents") - it won't show
-
@sierdzio said in How "hide" some files in creator tree?:
there is one filter I don't understand: filters->Hide disabled files. Maybe this will help you somehow?
I guess that is for files that live below a scope that is currently not active, e.g. like here, where only one of the platform headers is used:
unix { HEADERS += xxx_unix.h } else { HEADERS += xxx_win32.h }
-
Ah, of course, makes sense. So it won't help the OP.
-
Totally agree - they should add new option, something like "Hide linked headers", same as Borland/Embarcadero do it for many years in C++ Builder. Because Borland form unit consists of 3 files: cpp file, hpp file, frm (form) file. It is not necessary to display these 3 files separately. Same in Qt - I want to see units: cpp+h and switch between them when working with this unit.