Good morning i have a question for qt experts, i want to know what is the correct form and best for performance to use a resource inside qrc, for example i have:
1-
Image {
id: bg
anchors.bottomMargin: 60
anchors.fill: parent
source: "qrc:///assets/img/drawable-hdpi/bg.png"
}
2-
Image {
id: bg
anchors.bottomMargin: 60
anchors.fill: parent
source: "../assets/img/drawable-hdpi/bg.png"
}
whit the first qtcreator in design mode dont show the bg image but in preview or emulator works
whit the second qtcreator in design mode show the image and also work in preview
also whit this form:
Image {
id: bg
anchors.bottomMargin: 60
anchors.fill: parent
source: "qrc:/assets/img/drawable-hdpi/bg.png"
}
works in preview but qtcreator in design mode dont show the bg.png
i read in some qtblog post that if you want to use cache or somethink like that you need to use resources as qrc:// but i cant found the link right now.
but i want to know what is the best form and also for what using qrc:// qtcreator in design mode cant show the resource.