That works fine... but it does not when they are childs of different parent items.
Imagine we have:
QLineItem at position (general position, in a paper, not in qt) from 0,0 to 20,0
QLineItem from 20, 0 to 40, 40
QLineItem from 40, 40 to 80, -30
all are childs of the same QItem
and, after, connected, I have a QPixmapItem at pos 80,30, and it's a child of another QItem.
I was having problems mapping these coordenades, mapToScene of the line().p2() and map from scene at QPixmapItem.
Fortunatly, in my program each QPixmapItem needs to be surrounded by three qLineItem, being all of them childs of the same parent, so I can pass the coords mapfromItem between the qlineItems that are childs of different parents and map to parent between the items of the same parent.
Bookmarks