查看完整版本: [--
第5章使用qmake编译程序
--]
QTCN开发网
->
《C++ GUI Qt 4编程》(第2版)专栏
->
第5章使用qmake编译程序
[打印本页]
登录
->
注册
->
回复主题
->
发表主题
smallghost
2014-03-10 21:16
第5章使用qmake编译程序
在Qt5.2上编译iconeditplugin的时候,出现两个错误:
1、iconeditor.cpp:87:34: error: on member named 'intersect' in 'QRegion';
2、iconeditor.cpp:87:49: error: member reference base type 'bool' is not a structore or union
大家碰到过吗?
smallghost
2014-03-10 21:26
是不是需要装qt4再学习qt?
abc123-def
2015-07-23 15:32
intersect改为intersected就可以了,原来的在qt5弃用了
lwz123999
2015-12-11 16:55
abc123-def
:
intersect改为intersected就可以了,原来的在qt5弃用了
(2015-07-23 15:32)
谢谢2楼,改后就能make通过了....
donjun
2015-12-13 21:48
我也是安装5.4.2,运行这个例程,直接build报错,qmake时
:-1: warning: CONFIG+=designer is deprecated. Use QT+=designer instead.
怎么处理的?
donjun
2015-12-22 23:06
编译的 时候还出现Q_EXPORT_PLUGIN2,这个宏错误,后来百度后知道QT5已经弃用它,改用新的Q_PLUGIN_METADATA().这个新宏该如何使用了。有谁能指点下
//Q_EXPORT_PLUGIN2(iconeditorplugin, IconEditorPlugin)
Q_PLUGIN_METADATA()
发现这个论坛变冷了
查看完整版本: [--
第5章使用qmake编译程序
--] [--
top
--]
Powered by
phpwind
v8.7
Code ©2003-2011
phpwind
Gzip disabled