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
qtquickcontrols-versioning.qdoc
Go to the documentation of this file.
1
// Copyright (C) 2025 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4
/*!
5
\page qtquickcontrols-versioning.html
6
\title Versioning scheme
7
8
\brief Explains the versioning scheme used by Qt Quick Controls.
9
10
\section1 Versions
11
12
Qt Quick Controls 2.0 was introduced in Qt 5.7. Subsequent minor Qt releases
13
increment the import version of the Qt Quick Controls modules by one, until Qt
14
5.12, where the import versions match Qt's minor version.
15
16
In Qt 6, both the major and minor versions match, and version numbers may be
17
omitted from imports in QML. If the version is omitted, the latest version will
18
be used.
19
20
The experimental Qt Labs modules use import version 1.0.
21
22
\table
23
\header
24
\li \c Qt
25
\li \l {Qt Quick QML Types}{\c QtQuick}
26
\li \l {Qt Quick Controls QML Types}{\c QtQuick.Controls},\br
27
\l {Material Style}{\c QtQuick.Controls.Material},\br
28
\l {Universal Style}{\c QtQuick.Controls.Universal},\br
29
\l {Qt Quick Templates 2 QML Types}{\c QtQuick.Templates}
30
\li \l {Qt Labs Platform QML Types}{\c Qt.labs.platform}
31
\row
32
\li 5.7
33
\li 2.7
34
\li 2.0
35
\li 1.0
36
\row
37
\li 5.8
38
\li 2.8
39
\li 2.1
40
\li 1.0
41
\row
42
\li 5.9
43
\li 2.9
44
\li 2.2
45
\li 1.0
46
\row
47
\li 5.10
48
\li 2.10
49
\li 2.3
50
\li 1.0
51
\row
52
\li 5.11
53
\li 2.11
54
\li 2.4
55
\li 1.0
56
\row
57
\li 5.12
58
\li 2.12
59
\li 2.12
60
\li 1.0
61
\row
62
\li 6.0
63
\li 6.0
64
\li 6.0
65
\li 1.0
66
\row
67
\li ...
68
\li ...
69
\li ...
70
\li ...
71
\endtable
72
73
\section1 Revisions
74
75
Due to how Qt Quick Controls are implemented, new properties that are added may
76
clash with any user-defined properties of the same name. For example, the
77
following snippet will result in an error:
78
79
\qml
80
import QtQuick.Controls 2.13
81
82
ApplicationWindow {
83
// ...
84
85
ComboBox {
86
anchors.centerIn: parent
87
88
// As currentValue was added in 2.14, the versioned import above
89
// should cause this property to be used, but instead an error is produced:
90
// "Cannot override FINAL property"
91
property int currentValue: 0
92
}
93
}
94
\endqml
95
96
These properties should be renamed to avoid the conflict.
97
98
*/
qtdeclarative
src
quickcontrols
doc
src
qtquickcontrols-versioning.qdoc
Generated on
for Qt by
1.16.1