Hi, I was just wondering if anyone could help me with this problem in any way? I’ve been using a MapItemView to populate an AppMap with pins, but when I add a MouseArea to the sourceItem of the MapItemView’s delegate, it doesn’t register clicks by the user on the pins themselves.
MapItemView {
id: toiletView
model: toiletModel
delegate: MapQuickItem {
coordinate: QtPositioning.coordinate(latitude, longitude)
anchorPoint.x: toiletImage.width * 0.5
anchorPoint.y: toiletImage.height
sourceItem: AppImage {
id: toiletImage
width: dp(40)
height: dp(56)
source: "../assets/toilet-pin.png"
MouseArea {
anchors.fill: parent
onClicked: {
navStack.popAllExceptFirstAndPush(Qt.resolvedUrl("DetailMenu.qml"))
}
}
}
}
}
As far as I can tell, this code should register when the pin is clicked and take the user to the DetailMenu page. What am I doing wrong?