worldtimeclockplugin.h Example File
worldtimeclockplugin/worldtimeclockplugin.h
#ifndef WORLDTIMECLOCKPLUGIN_H
#define WORLDTIMECLOCKPLUGIN_H
#include <QtUiPlugin/QDesignerCustomWidgetInterface>
class WorldTimeClockPlugin : public QObject,
public QDesignerCustomWidgetInterface
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
explicit WorldTimeClockPlugin(QObject *parent = nullptr);
bool isContainer() const override;
bool isInitialized() const override;
QIcon icon() const override;
QString domXml() const override;
QString group() const override;
QString includeFile() const override;
QString name() const override;
QString toolTip() const override;
QString whatsThis() const override;
QWidget *createWidget(QWidget *parent) override;
void initialize(QDesignerFormEditorInterface *core) override;
private:
bool initialized = false;
};
#endif