このページでは

バージョン管理方式

バージョン

Qt Quick Controls 2.0はQt 5.7で導入されました。その後のQtのマイナーリリースでは、Qt Quick のControlsモジュールのインポートバージョンが1ずつ増加し、Qt 5.12に至っては、インポートバージョンがQtのマイナーバージョンと一致するようになりました。

Qt 6では、メジャーバージョンとマイナーバージョンが一致するため、Qmlでのインポート時にバージョン番号を省略できます。バージョンを省略した場合、最新バージョンが使用されます。

実験的な Qt Labs モジュールでは、インポートバージョン 1.0 が使用されます。

QtQtQuickQtQuick.Controls,
QtQuick.Controls.Material,
QtQuick.Controls.Universal,
QtQuick.Templates
Qt.labs.platform
5.72.72.01.0
5.82.82.11.0
5.92.92.21.0
5.102.102.31.0
5.112.112.41.0
5.122.122.121.0
6.06.06.01.0
............

改訂

Qt Quick コントロールの実装方法上、追加された新しいプロパティは、同じ名前のユーザー定義プロパティと競合する可能性があります。たとえば、次のスニペットではエラーが発生します:

import QtQuick.Controls 2.13

ApplicationWindow {
    // ...

    ComboBox {
        anchors.centerIn: parent

        // As currentValue was added in 2.14, the versioned import above
        // should cause this property to be used, but instead an error is produced:
        // "Cannot override FINAL property"
        property int currentValue: 0
    }
}

競合を避けるため、これらのプロパティの名前を変更する必要があります。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.