[Qt-creator] project looks 'odd' - how to fix?
Max Waterman
davidmaxwaterman+qtcreator at fastmail.co.uk
Fri Aug 6 12:03:13 CEST 2010
Hi,
I'm working on the MeeGo Touch library and have noticed that the project
looks 'wrong' when loaded into qtcreator.
I'm not so familiar with qtcreator (yet) so I wonder if someone could
give me some guidance on what we can change in the project in order for
it to look 'normal'.
The oddities seem mostly skin-deep - at this point I'd like to try to
address the appearance of the project in the 'Projects' pane.
>From other simple projects (eg ones that are started from new), the
Projects pane lists folders called 'Sources' and 'Headers', as well as
the project file.
In our project, it lists some items, but I'm not sure where they come
from :
- src.pro
+ common
+ corelib
+ extensions
+ meegotouch_defines
+ meegotouchconfig
+ settings
+ shared
+ views
We have tried to organise our project into different directories in the
file system, so, for example, the src directory contains :
common_bot.pri
common_top.pri
corelib/
data/
extensions/
icu-extradata/
include/
pch/
predeps.pri
settings/
src.pro
translations/
views/
I can see some correlation, but not much.
Our src.pro file contains (amongst other stuff) :
CONFIG += ordered
TEMPLATE = subdirs
SUBDIRS += \
corelib \
views \
settings \
extensions
and, for example, the corelib.pro file contains includes for .pri files
in the subdirectories under corelib, each of which adds source files to
SOURCES, and header files to PRIVATE_HEADERS and PUBLIC_HEADERS (there's
a 'common_bot.pri' file which does HEADERS += $$PUBLIC_HEADERS
$$PRIVATE_HEADERS at the end of the project file).
In the Projects pane, there is a 'corelib' folder, but inside it are
three 'core' folders each containing the same two entries - core.pri and
a Sources folder - though each Sources folder contains different source
files.
Looking at the files in these 'core' folders, I see that they are in
directories called 'core' that are in different subdirectories of
corelib :
./corelib/core/maction.cpp
./corelib/animation/core/manimation.cpp
./corelib/animation/widget/core/mabstractwidgetanimation.cpp
So, it seems like qtcreator is not considering the heirarchy of the
project.
If you care to take a look, the repository is here :
<http://meego.gitorious.org/meegotouch/libmeegotouch/>
I wonder if anyone has any advice on how to make this project look more
sensible.
Max.
More information about the Qt-creator-old
mailing list