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
qtquicktemplates-qmltypes.qdoc
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5 \qmlmodule QtQuick.Templates
6 \title Qt Quick Templates 2 QML Types
7 \ingroup qmlmodules
8 \brief Provides QML types for templates (Qt Quick Templates).
9
10 The \l {Qt Quick Templates 2} module provides a set of non-visual templates
11 that can be used to build user interface controls in QML using \l {Qt Quick}.
12
13 These types should be used when you want to implement a control from
14 scratch, rather than \l {Customizing a Control}{customizing an existing
15 control}. This is most commonly the case when \l {Creating a Custom
16 Style}{creating a custom style}.
17
18 The QML types can be imported using the following import statement in your
19 \c .qml file:
20
21 \qml
22 import QtQuick.Templates as T
23 \endqml
24
25 There is a one-to-one mapping between the types provided by the \c
26 QtQuick.Templates and \c QtQuick.Controls imports. For every type available
27 in the \c QtQuick.Controls import, a non-visual template type by the same
28 name exists in the \c QtQuick.Templates import.
29
30 \note It is recommended to use a namespace for the templates import to avoid
31 overlap with the types provided by the \c QtQuick.Controls import.
32
33 \section1 QML Types
34
35 \generatelist {qmltypesbymodule QtQuick.Controls}
36
37 \section1 Related Information
38
39 \list
40 \li \l {Qt Quick Controls QML Types}
41 \li \l {Using Qt Quick Controls types in property declarations}
42 \endlist
43
44 \noautolist
45*/