1 Star 6 Fork 2

jiangtao / GoSlowDetection

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
plugininterface.h 646 Bytes
一键复制 编辑 原始数据 按行查看 历史
#ifndef PLUGININTERFACE_H
#define PLUGININTERFACE_H
#include <QApplication>
#include <QWidget>
#include <QIcon>
class PluginInterface
{
public:
virtual ~PluginInterface(){}
virtual void setConfig(QString conf) = 0;
virtual QString getName() = 0; //必要要实现
virtual QIcon getIcon() = 0;
virtual QWidget* creactUi(QWidget *parent = 0) = 0;
virtual bool deleteUi() = 0;
virtual bool isOpenUi() = 0;
};
//定义唯一的ID号
#define pluginInterface_iid "io.qt.dynamicplugin"
//向Qt元对象系统声明了这个接口
Q_DECLARE_INTERFACE(PluginInterface, pluginInterface_iid)
#endif // PLUGININTERFACE_H
C++
1
https://gitee.com/jiangtao008/GoSlowDetection.git
git@gitee.com:jiangtao008/GoSlowDetection.git
jiangtao008
GoSlowDetection
GoSlowDetection
master

搜索帮助