标题:QT4对QT3类成员函数的支持??
作者:freegnu
日期:2006-06-07 11:50
内容:
比如说在 qwidget.h 中
QT4没有声明
inline QT3_SUPPORT void
QWidget::erase(const QRect &r) { erase_helper(r.x(), r.y(), r.width(), r.height()); }
那么在QT3中用到的该类的成员函数,在QT4中中就不能用了!
发现在QT4 qwidget.h文件中
#ifdef QT3_SUPPORT
#endif
开关
但不知道怎样打开开关?把它注释掉也不行
#1 [shiroki 06-07 18:22]
Add the line QT += qt3support to your .pro file if you use qmake; otherwise, edit your makefile or project file to link against the Qt3Support library and add -DQT3_SUPPORT to your compiler flags. (You might also need to specify other libraries. See What's New in Qt 4 for details.)
see:http://doc.trolltech.com/4.0/porting4.html