-
Bug
-
Resolution: Done
-
P1: Critical
-
Qt Creator 4.0.0-rc1
-
None
-
The latest Qt 5.7 branch
Hi, we're done renaming Qt Labs Controls to Qt Quick Controls 2. The new install tree is:
QT_INSTALL_QML/
qml
└── QtQuick
├── Controls.2
│ ├── Xxx.qml
│ ├── designer
│ ├── libqtquickcontrols2plugin.so
│ ├── Material
│ │ ├── Xxx.qml
│ │ ├── libqtquickcontrols2materialstyleplugin.so
│ │ └── qmldir
│ ├── plugins.qmltypes
│ ├── qmldir
│ └── Universal
│ ├── Xxx.qml
│ ├── libqtquickcontrols2universalstyleplugin.so
│ └── qmldir
└── Templates.2
├── libqtquicktemplates2plugin.so
├── plugins.qmltypes
└── qmldir
Notice how the style plugins are installed to qml/QtQuick.Controls.2/Material and qml/QtQuick.Controls.2/Universal. Here's the QML engine patch that made it possible: https://codereview.qt-project.org/#/c/155425/.
Try the following snippet with the latest Qt 5.7 branch:
// main.qml import QtQuick 2.7 import QtQuick.Controls 2.0 import QtQuick.Controls.Material 2.0 // <== "QML module not found." ApplicationWindow { visible: true Button { text: "Button" highlighted: true anchors.centerIn: parent Material.accent: Material.Red } }
| For Gerrit Dashboard: QTCREATORBUG-16145 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 157627,1 | QmlJs: search for version in parent modules. | 4.0 | qt-creator/qt-creator | Status: ABANDONED | +1 | 0 |
| 158002,4 | QmlJS: Allow version in parent module | 4.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
| 158032,2 | QmlJs: search for version in parent modules. | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |