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/tutorials | |
| 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/tutorials')
| -rw-r--r-- | examples/quick/tutorials/samegame/samegame4/samegame.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/tutorials/samegame/samegame4/samegame.js b/examples/quick/tutorials/samegame/samegame4/samegame.js index 99d34c64a0..0e1538be84 100644 --- a/examples/quick/tutorials/samegame/samegame4/samegame.js +++ b/examples/quick/tutorials/samegame/samegame4/samegame.js @@ -1,6 +1,6 @@ /* This script file handles the game logic */ -.import QtQuick.LocalStorage 2.0 as Sql -.import QtQuick 2.0 as Quick +.import QtQuick.LocalStorage as Sql +.import QtQuick as Quick var maxColumn = 10; var maxRow = 15; |
