Does it need to include all of them for the warning to appear or only some of them or maybe just one (which one?)?
Does it need to include all of them for the warning to appear or only some of them or maybe just one (which one?)?
hard to say,
could it be that you should include <QtGui/QColor> instead of <QColor> etc ?
regards,
jh
I think this is a Qt bug, in how the auto file generation works for libs, under windows, I don't know if only with VS2008.
If your project is auto generated lib with VS2008, then the export/import definition file <projectname>_global.h is generated and it calls "Qt/qglobal.h" - which caused the warning.
Change the file as follows, and the warning will go away:
Qt Code:
#include <QtGlobal>//<Qt/qglobal.h> #ifdef MYLIB_LIB # define MYLIB_EXPORT Q_DECL_EXPORT #else # define MYLIB_EXPORT Q_DECL_IMPORT #endifTo copy to clipboard, switch view to plain text mode
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks