Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-33358

"Qt Quick Application" template: Drop "VERSION 1.0" from qt_add_qml_module() if Qt 6.5 or newer is required

XMLWordPrintable

    • 98c13ddae (18.0)

      See https://codereview.qt-project.org/c/qt/qtdeclarative/+/456872 which "drop[ped] all the VERSION 1.0 lines from the examples and tests." It goes on to explain that "1.0 is actually a bad default version since it's before all the Qt versions." The same commit updated https://doc.qt.io/qt-6/qt-add-qml-module.html#versions to say "If you don't need versions you should omit the VERSION argument."

      Qt 6.5 allows us to omit the QML module's version number. So, when the minimum required Qt version is set to 6.5 or higher, the generated CMakeLists.txt should not contain "VERSION 1.0".

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            jksh Sze Howe Koh
            jksh Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes