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.
↧