Quantcast
Channel: Active questions tagged qtquick2 - Stack Overflow
Viewing all articles
Browse latest Browse all 107

QtQuick: dragging MapQuickItem on a Map

$
0
0

I want to achieve self-draggable MapQuickItem. Simple example:

MapQuickItem {    id: markerItem    sourceItem: Rectangle {        id: sourceRect        color: "red"        width: 20        height: 20        x: 0        y: 0        MouseArea {            drag.target: markerItem            cursorShape: drag.active ? Qt.ClosedHandCursor : Qt.OpenHandCursor            anchors.fill: parent        }    }    Drag.active: true}

The point is, if I drag fast, dragging is interrupted as soon as cursor leaves marker. Is there a way to make it work properly?


Viewing all articles
Browse latest Browse all 107

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>