我有一个加载到快速地图项中的图像,我只想在用户单击图像时找到像素行和列,我怎样才能得到它?谢谢
这是我的代码
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)
}