Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
6.2.1
Description
Unexpected scope for Url resolvement
import QtQuick Image { id: carViewScreenAsset source: Qt.resolvedUrl("assets/carViewScreen.svg") }
We have to use Qt.resolvedUrl in this case which is unexpected, since "assets/carViewScreen.svg" is the correct relative url for ClusterBackground.ui.qml.
But since Image is the root element the url is resolved in the context of CarViewScreen.ui.qml, and the url is not correctly resolved unless we 'manually' add Qt.resolvedUrl.
Image/carViewScreenAsset has two contexts in this case the one from 'ClusterBackground.ui.qml' and the one from 'CarViewScreen.ui.qml'.
Currently the outer context is used which is at least confusing in this case.
Attachments
Issue Links
- resulted from
-
QTBUG-95587 icon.source of Control is not resolved relative to user code
- Closed