[Qt-creator] project tree, show subdirectories
Ernst Huber
swmail01 at systest.ch
Fri May 15 15:36:44 CEST 2009
Mildred Ki'Lya schrieb:
> Hi,
>
> I wonder if there is a way to have a view of the project tree, showing
> subdirectories. In our project, we have many different classes that are
> each in a different directory. Being able to get those subdirectories to
> show would be useful to find the file we want to edit.
>
> Thanks.
>
> Mildred
>
>
Hi Mildred
You should have a separate .pro file for each subdirectory (assuming
each of your subdirectories represents a more or less stand-alone unit
such as a library). Then a main .pro (to be opened in Creator) with the
"subdirs" template is needed with a list of all the subdirectories.
For example:
TEMPLATE = subdirs
SUBDIRS = src/libA \
src/libB \
examples/libAdemo \
examples/libBdemo
Hope it helps.
Ernst
More information about the Qt-creator-old
mailing list