#include <Qt/someheader> not portable
greeneg at phoenuxos.com
Sat Feb 4 14:40:19 GMT 2006
On Saturday 04 February 2006 12:07 pm, Thiago Macieira wrote:
> Thomas Braxton wrote:
> >> > wrong:
> >> > #include <Qt/qwidget.h>
> >> >
> >> > right:
> >> > #include <QtGui/QWidget>
> >> > #include <QWidget>
> >> > #include <QtGui/qwidget.h>
> >> > #include <qwidget.h>
> I'd like to ask that people use only these forms:
> #include <QtModule/QClassName>
> #include <QtModule/qclassname.h>
> The other two forms require more -I switches to the compiler on the
> command-line (one for every Qt module [core, gui, xml, network, testlib,
> qt3support, svg, opengl]). All includes inside the Qt headers themselves
> are of the second form.
> The documentation on doc.trolltech.com says "#include <QClassName>",
> >> Correct, since these are the non-public parts of the Qt API.
Ignore my posting, I don't know where I got that from..... Sorry for the
> >That's not true, on my system Qt/QWidget and QtGui/QWidget are exactly
> > the same they each have the same one line
> >#include "qwidget.h"
> >IIRC the include/Qt dir has all Qt headers in one place instead of them
> > being separated by module.
> That's not true on all systems. Don't use the other forms.
Gary L. Greene, Jr.
Sent from aphrael.tolharadys.net
Developer and Project Lead for PhoeNUX OS.
check out http://www.phoenuxos.com/ for more info.
EMAIL : greeneg at phoenuxos.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 190 bytes
Desc: not available
More information about the kde-core-devel