22#include <QDesignerCustomWidgetInterface>
35class PianoKeybdPlugin :
public QObject,
39 Q_PLUGIN_METADATA(IID
"org.qt-project.Qt.QDesignerCustomWidgetInterface")
43 explicit PianoKeybdPlugin(
QObject *parent =
nullptr);
45 bool isContainer()
const override;
46 bool isInitialized()
const override;
47 QIcon icon()
const override;
48 QString domXml()
const override;
49 QString group()
const override;
50 QString includeFile()
const override;
51 QString name()
const override;
52 QString toolTip()
const override;
53 QString whatsThis()
const override;
54 QWidget *createWidget(QWidget *parent)
override;
55 void initialize(QDesignerFormEditorInterface *core)
override;
58 bool initialized =
false;
The QObject class is the base class of all Qt objects.