Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8.0 Beta1
-
None
-
Qt 6.8 Beta1
QtCreator 13.0.2 delivered together with 6.8 Beta1
-
-
f7d502c80 (dev), 5251db718 (6.8)
Description
this is a follow up to the discussions at https://bugreports.qt.io/browse/QTBUG-111763
Created a project to demonstrate the problems. see attached ekkeTestNested project.
structure of used qml files:
qml/Main.qml
opens pages/HomePage.qml
HomePage.qml uses
common/LabelTitle.qml
common/FloatingActionButon.qml
popups/AdminDialog.qml
AdminDialog uses
common/LabelTitle.qml
common/LabelSubheading.qml
URL: Ekke.Apps.Main
translations done for de
root qmldir:
module Ekke.Apps.Main typeinfo ekkeTestNested.qmltypes prefer :/qt/qml/Ekke/Apps/Main/ Main 254.0 qml/Main.qml LabelTitle 254.0 qml/common/LabelTitle.qml LabelSubheading 254.0 qml/common/LabelSubheading.qml FloatingActionButton 254.0 qml/common/FloatingActionButton.qml LabelBody 254.0 qml/common/LabelBody.qml AdminDialog 254.0 qml/popups/AdminDialog.qml HomePage 254.0 qml/pages/HomePage.qml
qmldir with
prefer :/qt/qml/Ekke/Apps/Main/
- generated into
- qml
- qml/common
- qml/pages
- qml/popups
all looks good
I'm also using QML_SINGLETON:
MyApp and DataManager
and a QML_ELEMENT
SettingsData
problems:
I have to add explicit import Ekke.Apps.Main into AdminDialog.qml, otherwise running the app:
HomePage.qml Type AdminDialog unavailable AdminDialog.qml SettingsData is not a type
after adding the explicit import App runs OK
running the App, in HomePage the implicit import is working as expected,
but inside QtCreator I'm getting
Unknown component (M300)
for LabelTitle, FloatingActionButton, AdminDialog
doing an explicit import M300 is gone
Attachments
Issue Links
- duplicates
-
QTBUG-126680 qmlls should know about implicit imports of nested QML
- Closed
- resulted in
-
QTBUG-126680 qmlls should know about implicit imports of nested QML
- Closed
For Gerrit Dashboard: QTBUG-126504 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
570271,9 | QtQml: Fix handling of redirected qmldirs and their URIs | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
570851,2 | QtQml: Fix handling of redirected qmldirs and their URIs | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |