我有一个图片被加载到快速地图项目中,我只想在用户点击图片时查找像素行和列,我该如何获得? 感谢
这是我的代码
MapQuickItem{
id:yes
anchorPoint.x: image.width/10
anchorPoint.y: image.height/10
zoomLevel:1
//width: 1
//height: 1
sourceItem: Image {
id:image
asynchronous:true
opacity: 80
source: "qrc:/../../../../../Desktop/1.png"
transformOrigin: Item.Center
rotation: 0
scale: 0.25
//width: 500
//height: 200
sourceSize.width: image.width/2
visible: false
//sourceSize.height:100
}
coordinate: QtPositioning.coordinate(59.91, 10.75)
}