#include <Qt/someheader> not portable
Gary Greene
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>",
> though.
>
> >> Correct, since these are the non-public parts of the Qt API.
>
> Huh?
Ignore my posting, I don't know where I got that from..... Sorry for the
noise.
> >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
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060204/9b1b8e2e/attachment.sig>
More information about the kde-core-devel
mailing list