I’m trying to use several images as markers for an AppMap in an app, and the Image item that I’m using to find them hasn’t been able to open the files I want to use. This is the code that I’ve been using.
MapQuickItem {
id: quick
anchorPoint.x: image.width/2
anchorPoint.y: image.height
coordinate: map.center
zoomLevel: 13
visible: true
sourceItem: Image {
id: image
source: "qrc:/assets/bubbler-pin.png"
}
The weirdest thing to me is that the felgo-logo.png file, which is in the same directory as these files as far as I can tell, works completely fine for this process, but none of the files I’ve attempted to use do, instead returning this error message:
file:/AmenityFinder/qml/Pages/AmenityFinderMainPage.qml:44: QML Image: Cannot open: qrc:/assets/bubbler-pin.png
This is the file I’m using:
https://drive.google.com/file/d/1dCErrlAUwXB1-FsnDOxQsZb6iE0N3U-z/view?usp=sharing
Any help anyone could give would be greatly appreciated.