Erik Johansson wrote:

2007/6/29, Arne Schmitz <[EMAIL PROTECTED]>:
Shouldn't that be obsolete? As far as I know, you would normally just do
something like:

 #include <QDir>

The make / build-system should set all the correct include paths. This is how
qmake and cmake works, and whatever we are using should also adhere to
that...?

Guess we could do that. Anders, you're the qt4 guy, what do you say?


Haven't given it any thought until now.
I like having the include lines show which module an include belongs to as it makes it easier to see what is included. But I had a look at the examples from Qt and they don't have modules in their includes so I'll say that's the way to go. So if it's up to me, I say we use #include <QDir> and not #include <QtCore/QDir>.


I also saw that it is possible to include <QtGui> which will make all core and gui classes from Qt available but I definitely prefer to specify which includes a class uses rather than including everything.

/Anders

Reply via email to