Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
LayoutCustomWidgets.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtUiPlugin/QDesignerCustomWidgetInterface>
4
5namespace sf
6{
7
12 : public QObject
13 , public QDesignerCustomWidgetCollectionInterface
14{
15 Q_OBJECT
16 Q_PLUGIN_METADATA(IID QDesignerCustomWidgetCollectionInterface_iid)
17 Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)
18
19 public:
23 explicit LayoutCustomWidgets(QObject* parent = nullptr);
24
29
33 [[nodiscard]] QList<QDesignerCustomWidgetInterface*> customWidgets() const override;
34
35 private:
39 QList<QDesignerCustomWidgetInterface*> widgets;
40};
41
42}// namespace sf
Implementation of interface class for the creation of GII custom widgets.
Definition LayoutCustomWidgets.h:14
QList< QDesignerCustomWidgetInterface * > customWidgets() const override
Overridden to return our own widget plugin classes.
LayoutCustomWidgets(QObject *parent=nullptr)
Constructor.
~LayoutCustomWidgets() override
Overridden destructor.
Definition Application.h:10