求助自定义QT插件问题

interlc 2009-08-06 03:47:49
在学习自定义QT窗口部件的时候,编译程序成功生成了【iconeditorplugin.dll】和【libiconeditorplugin.a】文件到 $(QTDIR)/plugins/designer
可是在QT设计师里 没有出现自定义的插件【IconEditor】
【iconeditorplugin.h】
#ifndef ICONEDITORPLUGIN_H
#define ICONEDITORPLUGIN_H

#include <QDesignerCustomWidgetInterface>

class IconEditorPlugin : public QObject,
public QDesignerCustomWidgetInterface
{
Q_OBJECT
Q_INTERFACES(QDesignerCustomWidgetInterface)

public:
IconEditorPlugin(QObject *parent = 0);

QString name() const;
QString includeFile() const;
QString group() const;
QIcon icon() const;
QString toolTip() const;
QString whatsThis() const;
bool isContainer() const;
QWidget *createWidget(QWidget *parent);
};

#endif
...全文
117 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
interlc 2009-08-15
  • 打赏
  • 举报
回复
结贴了,在慢慢研究,谢谢楼上的了
mississipii 2009-08-12
  • 打赏
  • 举报
回复
好像在makefile 文件下的某一句话(记得那句话的最后一个单词是thread,大概在makefile 文件正文中的第五行左右)里加 -libiconeditorplugin,这个是对libiconeditorplugin.a的,另外一个我也不知道
interlc 2009-08-11
  • 打赏
  • 举报
回复
试了好多方法仍旧没成功,最后顶一下,不行的话就听天由命了
interlc 2009-08-10
  • 打赏
  • 举报
回复
没有人知道吗?

23,116

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧