Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

How to get Screen Coordinates of a QML Item?

$
0
0
I recall doing this before. I believe you want myItem.mapToItem(null, 0, 0) Which is the top left corner of myItem relative to myItem. If you use myItem.mapToItem(null, myItem.x, myItem.y) myItem.x and myItem.y are the x/y coordinates relative to myItem’s parent object.

Viewing all articles
Browse latest Browse all 4972

Trending Articles