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
abstractobjectinspector.cpp
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
5
7
8/*!
9 \class QDesignerObjectInspectorInterface
10
11 \brief The QDesignerObjectInspectorInterface class allows you to
12 change the focus of \QD's object inspector.
13
14 \inmodule QtDesigner
15
16 You can use the QDesignerObjectInspectorInterface to change the
17 current form window selection. For example, when implementing a
18 custom widget plugin:
19
20 \snippet lib/tools_designer_src_lib_sdk_abstractobjectinspector.cpp 0
21
22 The QDesignerObjectInspectorInterface class is not intended to be
23 instantiated directly. You can retrieve an interface to \QD's
24 object inspector using the
25 QDesignerFormEditorInterface::objectInspector() function. A
26 pointer to \QD's current QDesignerFormEditorInterface object (\c
27 formEditor in the example above) is provided by the
28 QDesignerCustomWidgetInterface::initialize() function's
29 parameter. When implementing a custom widget plugin, you must
30 subclass the QDesignerCustomWidgetInterface to expose your plugin
31 to \QD.
32
33 The interface provides the core() function that you can use to
34 retrieve a pointer to \QD's current QDesignerFormEditorInterface
35 object, and the setFormWindow() function that enables you to
36 change the current form window selection.
37
38 \sa QDesignerFormEditorInterface, QDesignerFormWindowInterface
39*/
40
41/*!
42 Constructs an object inspector interface with the given \a parent
43 and the specified window \a flags.
44*/
45QDesignerObjectInspectorInterface::QDesignerObjectInspectorInterface(QWidget *parent, Qt::WindowFlags flags)
46 : QWidget(parent, flags)
47{
48}
49
50/*!
51 Destroys the object inspector interface.
52*/
53QDesignerObjectInspectorInterface::~QDesignerObjectInspectorInterface() = default;
54
55/*!
56 Returns a pointer to \QD's current QDesignerFormEditorInterface
57 object.
58*/
59QDesignerFormEditorInterface *QDesignerObjectInspectorInterface::core() const
60{
61 return nullptr;
62}
63
64/*!
65 \fn void QDesignerObjectInspectorInterface::setFormWindow(QDesignerFormWindowInterface *formWindow)
66
67 Sets the currently selected form window to \a formWindow.
68*/
69
70QT_END_NAMESPACE
Combined button and popup list for selecting options.