Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
6.0
Description
With my example Qt Quick App I get the following error:
QQmlApplicationEngine failed to load component qrc:/main.qml:10:9: Type Button unavailable qrc:/MyStyle/Button.qml:40:1: module "QtQuick.Templates" is not installed
In MyStyle/Button.qml, the imports are without versions:
import QtQuick import QtQuick.Controls import QtQuick.Controls.impl import QtQuick.Templates as T
However, in main.qml:
import QtQuick 2.15 import QtQuick.Controls 2.15
This is clearly a mismatch on the app's side, but perhaps it should still work.
Module SHA-1s:
Entering 'qtbase' commit 7c861a36f98972b64379589477930e2e894b0d72 Entering 'qtdeclarative' commit 02caa659dad5e28b95029e28a40912cabeaf6a9b Entering 'qtquickcontrols2' commit 28373abd5a6344c3c6d8b173c373657dd0d95707
Note that for qtquickcontrols2 you have to checkout https://codereview.qt-project.org/c/qt/qtquickcontrols2/+/307865/ and then cherry-pick https://codereview.qt-project.org/c/qt/qtquickcontrols2/+/308053 on top.
Attachments
Issue Links
- is required for
-
QTBUG-82922 Register types declaratively
- Closed
For Gerrit Dashboard: QTBUG-85151 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
309820,32 | Register QQuickDummyType as anonymous type | dev | qt/qtquickcontrols2 | Status: MERGED | +2 | 0 |
373597,2 | Drop qquickdummyregistration_p.h | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
373714,2 | Drop qquickdummyregistration_p.h | 6.2 | qt/qtdeclarative | Status: MERGED | +2 | 0 |