バージョン管理スキーム
バージョン
Qt Quick Controls 2.0 は Qt 5.7 で導入されました。それ以降の Qt のマイナーリリースでは、Qt Quick Controls モジュールのインポートバージョンが 1 ずつ増加し、Qt 5.12 ではインポートバージョンが Qt のマイナーバージョンと一致するようになりました。
Qt 6では、メジャーバージョンとマイナーバージョンの両方が一致し、QMLのインポートではバージョン番号を省略することができます。バージョンが省略された場合は、最新のバージョンが使用されます。
実験的なQt Labsのモジュールでは、importのバージョンは1.0を使用しています。
Qt | QtQuick | QtQuick.ControlsQtQuick.Controls.MaterialQtQuick.Controls.UniversalQtQuick.Templates | Qt.labs.platform |
|---|---|---|---|
| 5.7 | 2.7 | 2.0 | 1.0 |
| 5.8 | 2.8 | 2.1 | 1.0 |
| 5.9 | 2.9 | 2.2 | 1.0 |
| 5.10 | 2.10 | 2.3 | 1.0 |
| 5.11 | 2.11 | 2.4 | 1.0 |
| 5.12 | 2.12 | 2.12 | 1.0 |
| 6.0 | 6.0 | 6.0 | 1.0 |
| ... | ... | ... | ... |
改訂
Qt Quick Controls の実装方法により、新しく追加されたプロパティは、同じ名前のユーザー定義プロパティと衝突する可能性があります。例えば、以下のスニペットはエラーになります:
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.