Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 The QML types can be imported using the following import statement in your
14 \c .qml file:
15
16 \qml
17 import QtQuick.Templates as T
18 \endqml
19
20 For the sake of clarity, there is a one-to-one mapping between the types
21 provided by the \c QtQuick.Templates and \c QtQuick.Controls imports. For
22 every type available in the \c QtQuick.Controls import, a non-visual template
23 type by the same name exists in the \c QtQuick.Templates import.
24
25 \note It is recommended to use a namespace for the templates import to avoid
26 overlap with the types provided by the \c QtQuick.Controls import.
27
28 \section1 QML Types
29
30 \generatelist {qmltypesbymodule QtQuick.Controls}
31
32 \section1 Related Information
33
34 \list
35 \li \l {Qt Quick Controls QML Types}
36 \li \l {Using Qt Quick Controls types in property declarations}
37 \endlist
38
39 \noautolist
40*/