QDesignerNewFormWidgetInterface Class
QDesignerNewFormWidgetInterface provides an interface for chooser widgets that can be used within "New Form" dialogs and wizards. It presents the user with a list of choices taken from built-in templates, pre-defined template paths and suitable custom widgets. It provides a static creation function that returns Qt Designer's implementation. More...
| Header: | #include <QDesignerNewFormWidgetInterface> |
| Inherits: | QWidget |
Public Functions
| QDesignerNewFormWidgetInterface(QWidget *parent = nullptr) | |
| virtual | ~QDesignerNewFormWidgetInterface() |
| virtual QString | currentTemplate(QString *errorMessage = 0) = 0 |
| virtual bool | hasCurrentTemplate() const = 0 |
Signals
| void | currentTemplateChanged(bool templateSelected) |
| void | templateActivated() |
Static Public Members
| QDesignerNewFormWidgetInterface * | createNewFormWidget(QDesignerFormEditorInterface *core, QWidget *parent = nullptr) |
Member Function Documentation
[explicit] QDesignerNewFormWidgetInterface::QDesignerNewFormWidgetInterface(QWidget *parent = nullptr)
Constructs a QDesignerNewFormWidgetInterface object.
[virtual noexcept] QDesignerNewFormWidgetInterface::~QDesignerNewFormWidgetInterface()
Destroys the QDesignerNewFormWidgetInterface object.
[static] QDesignerNewFormWidgetInterface *QDesignerNewFormWidgetInterface::createNewFormWidget(QDesignerFormEditorInterface *core, QWidget *parent = nullptr)
Creates an instance of the QDesignerNewFormWidgetInterface as a child of parent using core.
[pure virtual] QString QDesignerNewFormWidgetInterface::currentTemplate(QString *errorMessage = 0)
Returns the contents of the currently selected template. If the method fails, an empty string is returned and errorMessage receives an error message.
[signal] void QDesignerNewFormWidgetInterface::currentTemplateChanged(bool templateSelected)
This signal is emitted whenever the user changes the current template. templateSelected indicates whether a template is currently selected.
[pure virtual] bool QDesignerNewFormWidgetInterface::hasCurrentTemplate() const
Returns whether a form template is currently selected.
[signal] void QDesignerNewFormWidgetInterface::templateActivated()
This signal is emitted whenever the user activates a template by double-clicking.