Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.2
-
-
a22bd4164e (qt/qtdeclarative/dev) a22bd4164e (qt/tqtc-qtdeclarative/dev) 61e269ded1 (qt/qtdeclarative/6.4) 56e868bc5e (qt/qtdeclarative/6.3) 56e868bc5e (qt/tqtc-qtdeclarative/6.3) 61e269ded1 (qt/tqtc-qtdeclarative/6.4)
Description
Qml Engine fails to load while loading by remote url. It works fine while loading normally by qrc.
// Test.qml import QtQuick 2.10 TestForm { } // TestForm.ui.qml import QtQuick 2.10 Item { }
Workaround:
// Test.qml import QtQuick 2.10 import "." as This This.TestForm { }
EDIT
Better workaround: Add qmldir file to the same folder where the Test.qml file exists
// Test.qml import QtQuick 2.10 TestForm { } // TestForm.ui.qml import QtQuick 2.10 Item { } // qmldir TestForm 1.0 TestForm.ui.qml
Attachments
Issue Links
- duplicates
-
QTBUG-92069 Android: Remote loading ui files in Qml fails if extension is ui.qml
- Closed