QDesignerWidgetFactoryInterface Class
The QDesignerWidgetFactoryInterface class provides an interface that is used to control the widget factory used by Qt Designer. \inmodule
QtDesigner \internal
. More...
Header: | #include <QDesignerWidgetFactoryInterface> |
Inherits: | QObject |
Public Functions
QDesignerWidgetFactoryInterface(QObject *parent = nullptr) | |
virtual | ~QDesignerWidgetFactoryInterface() |
virtual QWidget * | containerOfWidget(QWidget *child) const = 0 |
virtual QDesignerFormEditorInterface * | core() const = 0 |
virtual QLayout * | createLayout(QWidget *widget, QLayout *layout, int type) const = 0 |
virtual QWidget * | createWidget(const QString &name, QWidget *parent = nullptr) const = 0 |
virtual void | initialize(QObject *object) const = 0 |
virtual bool | isPassiveInteractor(QWidget *widget) = 0 |
virtual QWidget * | widgetOfContainer(QWidget *container) const = 0 |
Detailed Description
Member Function Documentation
[explicit]
QDesignerWidgetFactoryInterface::QDesignerWidgetFactoryInterface(QObject *parent = nullptr)
Constructs an interface to a widget factory with the given parent.
[virtual noexcept]
QDesignerWidgetFactoryInterface::~QDesignerWidgetFactoryInterface()
[pure virtual]
QWidget *QDesignerWidgetFactoryInterface::containerOfWidget(QWidget *child) const
Returns the widget that contains the specified child widget.
[pure virtual]
QDesignerFormEditorInterface *QDesignerWidgetFactoryInterface::core() const
Returns the core form editor interface associated with this interface.
[pure virtual]
QLayout *QDesignerWidgetFactoryInterface::createLayout(QWidget *widget, QLayout *layout, int type) const
Returns a new layout of the specified type for the given widget or layout.
[pure virtual]
QWidget *QDesignerWidgetFactoryInterface::createWidget(const QString &name, QWidget *parent = nullptr) const
Returns a new widget with the given name and parent widget. If no parent is specified, the widget created will be a top-level widget.