Details
-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
5.12.2, 5.12.4, 5.13.0
-
None
-
iPad Pro; Model: ML0N2FD/A; iOS 11.4
iPad Air 2; Model: MGKL2FD/A; iOS 12.3.1
Description
When adding a custom import path for QML modules, QtQuick.Control 1 cannot be loaded anymore on iOS static build.
Error message:
QQmlApplicationEngine failed to load component
qrc:/main.qml:58 Type ApplicationWindow unavailable
file::/qt-project.org/imports/QtQuick/Controls/qmldir:-1 module ":.qt-project.imports.QtQuick.Controls" plugin "qtquickcontrolsplugin" not found
This can be reproduced with the example "Qt Quick Controls 1 - Gallery".
Change
QQmlApplicationEngine engine(QUrl("qrc:/main.qml"));
to
QQmlApplicationEngine engine; engine.addImportPath("qrc:/"); engine.load(QUrl("qrc:/main.qml"));
Attachments
Issue Links
- relates to
-
QTBUG-77031 [REG 5.11->5.12] "qtquickcontrolsplugin" not found in static builds
-
- Closed
-
-
QTBUG-76508 iOS QML error when using QtQuick Controls 1
-
- Closed
-