• 6999阅读
  • 2回复

在Designer中集成自定义窗口部件中遇到的问题 [复制链接]

上一主题 下一主题
离线pan356
 
只看楼主 倒序阅读 楼主  发表于: 2011-02-27
我是按Qt 4第二版第五章中的iconeditorplugin例子进行运行,出现以下错误提示:
1>------ 已启动生成: 项目: iconeditorplugin, 配置: Debug Win32 ------
1>Moc'ing iconeditorplugin.h...
1>.\iconeditorplugin.h(10): Error: Undefined interface
1>Project : error PRJ0019: 某个工具从以下位置返回了错误代码: "Moc'ing iconeditorplugin.h..."
1>生成日志保存在“file://e:\QT_training\char_05\iconeditorplugin\iconeditorplugin\Debug\BuildLog.htm”
1>iconeditorplugin - 1 个错误,0 个警告
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
请求高手帮忙解决!!
  Q_INTERFACES(QDesignerCustomWidgetInterface)此句我是按照书上写的打上去的,但是为什么显示没有定义的界面呢?
在线uidab

只看该作者 1楼 发表于: 2011-05-17
回 楼主(pan356) 的帖子
楼上的解决了吗?
我也在看这个例子。总有undefined reference to `IconEditor::IconEditor(QWidget*)这个错误
为什么做好的插件在Qt Creator下没有?只能在 Qt Designer下能看见?
有时候为了工作直接获得答案,而我却失去了思考的乐趣!


飘啊飘,何时能安居!
离线pan356
只看该作者 2楼 发表于: 2011-05-31
木····
快速回复
限100 字节
 
上一个 下一个