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
abstractwidgetfactory.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 ABSTRACTWIDGETFACTORY_H
6#define ABSTRACTWIDGETFACTORY_H
7
8#include <QtDesigner/sdk_global.h>
9#include <QtCore/qobject.h>
10
11QT_BEGIN_NAMESPACE
12
13class QDesignerFormEditorInterface;
14class QWidget;
15class QLayout;
16
17class QDESIGNER_SDK_EXPORT QDesignerWidgetFactoryInterface: public QObject
18{
19 Q_OBJECT
20public:
21 explicit QDesignerWidgetFactoryInterface(QObject *parent = nullptr);
22 virtual ~QDesignerWidgetFactoryInterface();
23
24 virtual QDesignerFormEditorInterface *core() const = 0;
25
26 virtual QWidget* containerOfWidget(QWidget *w) const = 0;
27 virtual QWidget* widgetOfContainer(QWidget *w) const = 0;
28
29 virtual QWidget *createWidget(const QString &name, QWidget *parentWidget = nullptr) const = 0;
30 virtual QLayout *createLayout(QWidget *widget, QLayout *layout, int type) const = 0;
31
32 virtual bool isPassiveInteractor(QWidget *widget) = 0;
33 virtual void initialize(QObject *object) const = 0;
34};
35
36QT_END_NAMESPACE
37
38#endif // ABSTRACTWIDGETFACTORY_H
The QDesignerWidgetFactoryInterface class provides an interface that is used to control the widget fa...
friend class QWidget
Definition qpainter.h:432