What about #ifdef QT3_SUPPORT? There's a lot of them in Qt headers.Originally Posted by high_flyer
What about #ifdef QT3_SUPPORT? There's a lot of them in Qt headers.Originally Posted by high_flyer
I am not syre what do you mean with that.What about #ifdef QT3_SUPPORT? There's a lot of them in Qt headers.
You need to link against the Qt3 support lib if you want to use the Qt3 support classes...
How do you want to uese the #ifdef for that? with adding dynamic linking in the code?
Its possible, but lots of work... much easier just to add a -l to the libs list...
But adding -lQt3Support to LIBS is not enough.Originally Posted by high_flyer
For example lets take QString header:
Without QT3_SUPPORT defined, compiler won't see those methods.Qt Code:
... #ifdef QT3_SUPPORT inline QT3_SUPPORT const char *ascii() const { return ascii_helper(); } inline QT3_SUPPORT const char *latin1() const { return latin1_helper(); } ...To copy to clipboard, switch view to plain text mode
QT += something does more than LIBS += -lsometing.
oh, now I see what you meant...
One sould ofcourse add the QT3_SUPPORT define to the make parameters under "build options->defines"
It works on my system (Kdevelop 3.3.4 and Qt 4.1.4). In the .pro file, i have :Originally Posted by huet
QT = core gui debug
CONFIG += debug warn_on
Don't forget to clean the project, recompile it and run in debugger mode. If you modify settings in qmake manager it does not recompile by default.
Cedric.
Bookmarks