#include <Qt/someheader> not portable

Gary Greene greeneg at phoenuxos.com
Fri Feb 3 23:32:03 GMT 2006


On Friday 03 February 2006 6:30 pm, Alexander Neundorf wrote:
> Hi,
>
> e.g. on my linux box there is a directory include/Qt/, which contains among
> others the QtGlobal header. On some other systems (Windows I think), this
> directory also exists, but doesn't contain new-style headers, i.e. no
> QtGlobal, but only qglobal.h. Now on OS X with Qt build as a framework this
> directory doesn't exist at all.
>
> So: don't use headers from include/Qt/, this is not portable:
>
> wrong:
> #include <Qt/qwidget.h>
>
> right:
> #include <QtGui/QWidget>
> #include <QWidget>
> #include <QtGui/qwidget.h>
> #include <qwidget.h>
>
> Bye
> Alex

Correct, since these are the non-public parts of the Qt API.

-- 
Gary L. Greene, Jr.
Sent from uriel
  6:31pm  up   4:59,  7 users,  load average: 0.09, 0.06, 0.08
 
============================================================
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: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060203/56665039/attachment.sig>


More information about the kde-core-devel mailing list