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 module 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 The \QDesSup module was introduced in Qt 6.12.
20
21 \section1 Using the Module
22
23 \section2 QML API
24
25 \include {module-use.qdocinc} {using the qml api} {QtQml.DesignSupport}
26
27 The \l{\QDesSup QML Types}{QML API} of \QDesSup module
28 provides the types required for registering QML objects and referencing registered QML objects.
29
30 \section2 C++ API
31
32 \include {module-use.qdocinc} {using the c++ api}
33
34 The \l{\QDesSup C++ Classes}{C++ API} of \QDesSup
35 module provides the classes required for referencing registered QML objects.
36
37 \section3 Building with CMake
38
39 \include {module-use.qdocinc} {building with cmake} {QmlDesignSupport}
40
41 \section3 Building with qmake
42
43 \include {module-use.qdocinc} {building_with_qmake} {qmldesignsupport}
44
45 \section1 API Reference
46
47 \list
48 \li \l {\QDesSup C++ Classes} {C++ Classes}
49 \li \l {\QDesSup QML Types} {QML Types}
50 \endlist
51
52 \section1 Licenses and Attributions
53
54 \QDesSup is available under commercial licenses from \l{The Qt Company}.
55 In addition, it is available under the
56 \l{GNU Lesser General Public License, version 3}, or
57 the \l{GNU General Public License, version 2}.
58 See \l{Qt Licensing} for further details.
59*/
60
61/*!
62 \qmlmodule QtQml.DesignSupport
63 \title \QDesSup QML Module
64 \ingroup qmlmodules
65 \brief QML types for \QDesSup API
66 \since 6.12
67
68 The \QDesSup functionality can be accessed via these QML types.
69*/
70
71/*!
72 \module QtQmlDesignSupport
73 \qtcmakepackage QmlDesignSupport
74 \qtvariable qmldesignsupport
75 \title \QDesSup Module
76 \since 6.12
77
78 \brief C++ classes for the \QDesSup API.
79*/
80
81/*!
82 \title \QDesSup QML Types
83 \group qmldesignsupport_qml
84
85 \brief QML types for the \QDesSup API.
86
87 The \QDesSup functionality can be accessed via these QML types.
88*/
89
90/*!
91 \title \QDesSup C++ Classes
92 \group qmldesignsupport
93
94 \brief C++ classes for the \QDesSup API.
95
96 The \QDesSup functionality can be accessed via these C++ classes.
97*/