Hello everyone 🙂
I don’t know, if it is possible, why I am asking you now.
I want to have to .qml files: ContentManager.qml and HomeWindow.qml.
I’ve got more .qml-files, in which I want to use the same Backgroundimage as in the HomeWindow. So my question is: Can I define the Image in the ContentManager and call it from other .qml-files?
Like this (which doesn’t work yet):
ContentManager.qml:
Item {
id: lcm
property alias background: background
MultiResolutionImage {
id: background
source: sourceManager.backgroundFile2
anchors.fill: parent
}
}
and HomeWindow.qml:
Scene {
id: homeWindow
anchors.fill: parent
property MultiResolutionImage backgr: levelContentManager.background
}
but right now, it doesn’t show me anything, so the question is still: is it possible at all? And if yes – HOW? 🙂 maybe I need a function?
Thank you
Nina