I'm using .pri file in each subdirectory instead of .pro. 

[Your main .pro file]

TEMPLATE = app

include(foo/foo.pri)

DEPENDPATH += foo [not sure, it is necessary]
INCLUDEPATH += foo [not sure, it is necessary]

SOURCES += main.cpp ...

[...]

[foo.pri]

HEADERS += $$PWD/foo.h
SOURCES += $$PWD/foo.cpp


Subdirectory can contain anything: stand-alone unit or not. 
I guess, you can easily run a script to built .pri file automatically. 

Regards 
Renaud


> 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
> 
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to