• 4645阅读
  • 1回复

QT4对QT3类成员函数的支持?? [复制链接]

上一主题 下一主题
离线freegnu
 

只看楼主 倒序阅读 楼主  发表于: 2006-06-07
QT4对QT3类成员函数的支持??
比如说在 qwidget.h 中
QT4没有声明
  1. inline QT3_SUPPORT void
  2. QWidget::erase(const QRect &r) { erase_helper(r.x(), r.y(), r.width(), r.height()); }

那么在QT3中用到的该类的成员函数,在QT4中中就不能用了!
发现在QT4 qwidget.h文件中
  1. #ifdef QT3_SUPPORT
  2. #endif

开关
但不知道怎样打开开关?把它注释掉也不行
[ 此贴被XChinux在2006-06-07 18:28重新编辑 ]
离线shiroki

只看该作者 1楼 发表于: 2006-06-07
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
--
shiro is White
ki is tree
http://www.cuteqt.com
论坛 http://www.cuteqt.com/bbs
博客 http://www.cuteqt.com/blog
博客镜像: http://sites.cuteqt.com/cuteqt
Linux/Qt/嵌入式讨论群 http://qun.qq.com/air/5699823
快速回复
限100 字节
 
上一个 下一个