-
Bug
-
Resolution: Done
-
P1: Critical
-
5.12.0 RC
-
None
-
-
826b09f0c507fe5321a8534054a4f0b7bdd2699b (qt/qtbase/5.12)
Sample code:
import QtQuick 2.10
import QtQuick.Window 2.10
import QtQuick.Controls 1.3 as Controls1
import QtQuick.Controls 2.1
Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
}
This is kind of a dealbreaker as it for example breaks the FileDialog component that internally still uses Controls 1.
On 5.11.2 everything works.
On 5.12.0 rc1 I get:
qrc:/main.qml:4 module "QtQuick.Controls" version 2.1 is not installed
I wonder what changed between those versions? Somehow in creating the app bundle maybe or otherwise in deploying the qml resources or namespaces? Although everything should be in the library plugins, I don't know enough about the internals to understand this myself.
Thank you @richard for helping me to reproduce this.
Output of qmlimportscanner shows both:
[
{
"name": "QtQuick",
"type": "module",
"version": "2.10"
},
{
"name": "QtQuick.Window",
"type": "module",
"version": "2.10"
},
{
"name": "QtQuick.Controls",
"type": "module",
"version": "1.3"
},
{
"name": "QtQuick.Controls",
"type": "module",
"version": "2.1"
},
{
"name": "QtQuick",
"type": "module",
"version": "2.12"
},
{
"name": "QtQuick.Templates",
"type": "module",
"version": "2.12"
},
{
"name": "QtQuick.Window",
"type": "module",
"version": "2.12"
},
{
"name": "QtQuick.Controls",
"type": "module",
"version": "2.12"
},
{
"name": "QtQuick.Controls.impl",
"type": "module",
"version": "2.12"
},
{
"name": "QtQuick.Window",
"type": "module",
"version": "2.2"
},
{
"name": "QtQuick.Controls.Fusion",
"type": "module",
"version": "2.12"
},
{
"name": "QtQuick.Controls.Fusion.impl",
"type": "module",
"version": "2.12"
},
{
"name": "QtQuick.Controls.Universal",
"type": "module",
"version": "2.12"
},
{
"name": "QtQuick.Controls.Universal.impl",
"type": "module",
"version": "2.12"
},
{
"name": "QtQuick.Controls.Material",
"type": "module",
"version": "2.12"
},
{
"name": "QtQuick.Controls.Material.impl",
"type": "module",
"version": "2.12"
},
{
"name": "QtQuick.Controls.Imagine",
"type": "module",
"version": "2.12"
},
{
"name": "QtQuick.Controls.Imagine.impl",
"type": "module",
"version": "2.12"
},
{
"name": "QtGraphicalEffects",
"type": "module",
"version": "1.12"
}
]
In the LIBS I see both -lqtquickcontrolsplugin and -lqtquickcontrols2plugin ..
- relates to
-
QTBUG-62647 Open FileDialog on iOS does not do anything
-
- Closed
-