Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
abstractnewformwidget.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef ABSTRACTNEWFORMWIDGET_H
5#define ABSTRACTNEWFORMWIDGET_H
6
7#include <QtDesigner/sdk_global.h>
8
9#include <QtWidgets/qwidget.h>
10
11QT_BEGIN_NAMESPACE
12
13class QDesignerFormEditorInterface;
14
15class QDESIGNER_SDK_EXPORT QDesignerNewFormWidgetInterface : public QWidget
16{
17 Q_OBJECT
18public:
19 explicit QDesignerNewFormWidgetInterface(QWidget *parent = nullptr);
20 virtual ~QDesignerNewFormWidgetInterface();
21
22 virtual bool hasCurrentTemplate() const = 0;
23 virtual QString currentTemplate(QString *errorMessage = nullptr) = 0;
24
25 static QDesignerNewFormWidgetInterface *createNewFormWidget(QDesignerFormEditorInterface *core, QWidget *parent = nullptr);
26
27Q_SIGNALS:
28 void templateActivated();
29 void currentTemplateChanged(bool templateSelected);
30};
31
32QT_END_NAMESPACE
33
34#endif // ABSTRACTNEWFORMWIDGET_H
QDesignerNewFormWidgetInterface provides an interface for chooser widgets that can be used within "Ne...
Combined button and popup list for selecting options.