diff options
| author | Sze Howe Koh <szehowe.koh@gmail.com> | 2025-09-19 16:41:25 +0800 |
|---|---|---|
| committer | Sze Howe Koh <szehowe.koh@gmail.com> | 2025-10-28 19:21:52 +0800 |
| commit | bd4e0441688758d7e73aef43bd8633d68370f7f7 (patch) | |
| tree | c42ca0466eb8ff763ebb848f5323a1707cf8ebdf /examples/quick/shared | |
| parent | e51223c77ca9ff05e7a2db8e7598c762a9918b9b (diff) | |
Examples: Stop using version numbers with QML modules
Continues 2d44365f69b9bc946d085c6b149e2ac319700265 and
b7f448f8647a9a118cee2d79d446194b20d4b335
* Qt 6.0 enabled and encouraged users to import QML modules without
specifying a version number
* Qt 6.5 enabled and encouraged users to create QML modules without
specifying a version number
With this approach, there is little benefit in specifying
QT_QML_SOURCE_VERSIONS, especially in an example module that is not
consumed by external software. It does not need to worry about
compatibility/versioning.
Task-number: QTBUG-89033
Task-number: QTBUG-140406
Change-Id: I7f83dc7430180b79b70c75e7ce7b3aef46a028ae
Pick-to: 6.10 6.8
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'examples/quick/shared')
| -rw-r--r-- | examples/quick/shared/CMakeLists.txt | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/examples/quick/shared/CMakeLists.txt b/examples/quick/shared/CMakeLists.txt index 7382df7689..0d9ece8bd3 100644 --- a/examples/quick/shared/CMakeLists.txt +++ b/examples/quick/shared/CMakeLists.txt @@ -1,20 +1,13 @@ # Copyright (C) 2022 The Qt Company Ltd. # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause -set_source_files_properties(CheckBox.qml TabSet.qml TextField.qml - PROPERTIES - QT_QML_SOURCE_VERSIONS 2.1 -) - set_source_files_properties(Images.qml PROPERTIES QT_QML_SINGLETON_TYPE true - QT_QML_SOURCE_VERSIONS 2.2 ) qt_add_qml_module(${PROJECT_NAME}_shared URI shared - VERSION 2.2 PLUGIN_TARGET ${PROJECT_NAME}_shared SOURCES "shared.h" |
