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
qtqmldesignsupport.qdoc
Go to the documentation of this file.
1// Copyright (C) 2026 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5 \title \QDesSup
6 \page qtqmldesignsupport-index.html
7 \brief Provides a set of types to allow registering and referencing objects in QML
8
9 The \QDesSup provides support for design tooling with a set of types for
10 registering and referencing objects in QML. Objects are identified with a key string at
11 registration and reference types can use these keys to get references to the registered objects.
12 The idea is to allow clean separation between UI code and business logic, particularly in cases
13 where UI code is automatically generated with some tool and developers are not expected to
14 manually modify it. The \QDesSup module provides both a
15 \l{\QDesSup QML Types}{QML API} and a
16 \l{\QDesSup C++ Classes}{C++ API} for referencing registered objects.
17 The object registration is only available as \l{\QDesSup QML Types}{QML API}.
18
19 \section1 Using the Module
20
21 \section2 QML API
22
23 \include {module-use.qdocinc} {using the qml api} {QtQml.DesignSupport}
24
25 The \l{\QDesSup QML Types}{QML API} of \QDesSup module
26 provides the types required for registering QML objects and referencing registered QML objects.
27
28 \section2 C++ API
29
30 \include {module-use.qdocinc} {using the c++ api}
31
32 The \l{\QDesSup C++ Classes}{C++ API} of \QDesSup
33 module provides the classes required for referencing registered QML objects.
34
35 \section3 Building with CMake
36
37 \include {module-use.qdocinc} {building with cmake} {QmlDesignSupport}
38
39 \section3 Building with qmake
40
41 \include {module-use.qdocinc} {building_with_qmake} {qmldesignsupport}
42
43 \section1 API Reference
44
45 \list
46 \li \l {\QDesSup C++ Classes} {C++ Classes}
47 \li \l {\QDesSup QML Types} {QML Types}
48 \endlist
49
50 \section1 Licenses and Attributions
51
52 \QDesSup is available under commercial licenses from \l{The Qt Company}.
53 In addition, it is available under the
54 \l{GNU Lesser General Public License, version 3}, or
55 the \l{GNU General Public License, version 2}.
56 See \l{Qt Licensing} for further details.
57*/
58
59/*!
60 \qmlmodule QtQml.DesignSupport
61 \title \QDesSup QML Module
62 \ingroup qmlmodules
63 \brief QML types for \QDesSup API
64 \since 6.12
65
66 The \QDesSup functionality can be accessed via these QML types.
67*/
68
69/*!
70 \module QtQmlDesignSupport
71 \qtcmakepackage QmlDesignSupport
72 \qtvariable qmldesignsupport
73 \title \QDesSup Module
74 \since 6.12
75
76 \brief C++ classes for the \QDesSup API.
77*/
78
79/*!
80 \title \QDesSup QML Types
81 \group qmldesignsupport_qml
82
83 \brief QML types for the \QDesSup API.
84
85 The \QDesSup functionality can be accessed via these QML types.
86*/
87
88/*!
89 \title \QDesSup C++ Classes
90 \group qmldesignsupport
91
92 \brief C++ classes for the \QDesSup API.
93
94 The \QDesSup functionality can be accessed via these C++ classes.
95*/