中国象棋控件 v2.0.13
载入中...
搜索中...
未找到
FrmChineseChessPlugin.h
1
6#ifndef FRMCHINESECHESSPLUGIN_H
7#define FRMCHINESECHESSPLUGIN_H
8
9#include <QDesignerCustomWidgetInterface>
10class CFrmChineseChessPlugin : public QObject, public QDesignerCustomWidgetInterface
11{
12 Q_OBJECT
13 Q_INTERFACES(QDesignerCustomWidgetInterface)
14#if QT_VERSION >= 0x050000
15 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
16#endif // QT_VERSION >= 0x050000
17
18public:
19 explicit CFrmChineseChessPlugin(QObject *parent = nullptr);
20
21 bool isContainer() const;
22 bool isInitialized() const;
23 QIcon icon() const;
24 QString domXml() const;
25 QString group() const;
26 QString includeFile() const;
27 QString name() const;
28 QString toolTip() const;
29 QString whatsThis() const;
30 QWidget *createWidget(QWidget *parent);
31 void initialize(QDesignerFormEditorInterface *core);
32
33private:
34 bool m_initialized;
35};
36
37#endif // FRMCHINESECHESSPLUGIN_H
QtCreator 中国象棋插件 作者:康林