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// Qt-Security score:significant reason:default
4
5#ifndef ABSTRACTNEWFORMWIDGET_H
6#define ABSTRACTNEWFORMWIDGET_H
7
8#include <QtDesigner/sdk_global.h>
9
10#include <QtWidgets/qwidget.h>
11
12QT_BEGIN_NAMESPACE
13
14class QDesignerFormEditorInterface;
15
16class QDESIGNER_SDK_EXPORT QDesignerNewFormWidgetInterface : public QWidget
17{
18 Q_OBJECT
19public:
20 explicit QDesignerNewFormWidgetInterface(QWidget *parent = nullptr);
21 ~QDesignerNewFormWidgetInterface() override;
22
23 virtual bool hasCurrentTemplate() const = 0;
24 virtual QString currentTemplate(QString *errorMessage = nullptr) = 0;
25
26 static QDesignerNewFormWidgetInterface *createNewFormWidget(QDesignerFormEditorInterface *core, QWidget *parent = nullptr);
27
28Q_SIGNALS:
29 void templateActivated();
30 void currentTemplateChanged(bool templateSelected);
31};
32
33QT_END_NAMESPACE
34
35#endif // ABSTRACTNEWFORMWIDGET_H
QDesignerNewFormWidgetInterface provides an interface for chooser widgets that can be used within "Ne...
Combined button and popup list for selecting options.