Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
11
QT_BEGIN_NAMESPACE
12
13
class
QDesignerFormEditorInterface;
14
class
QWidget
;
15
class
QLayout;
16
17
class
QDESIGNER_SDK_EXPORT
QDesignerWidgetFactoryInterface
:
public
QObject
18
{
19
Q_OBJECT
20
public
:
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
36
QT_END_NAMESPACE
37
38
#
endif
// ABSTRACTWIDGETFACTORY_H
QDesignerWidgetFactoryInterface
The QDesignerWidgetFactoryInterface class provides an interface that is used to control the widget fa...
Definition
abstractwidgetfactory.h:18
QPainter::QWidget
friend class QWidget
Definition
qpainter.h:432
qttools
src
designer
src
lib
sdk
abstractwidgetfactory.h
Generated on
for Qt by
1.18.0