wysota,
Thanks for your help. I don't think I have fully managed to communicate what I am doing, because part of what you were saying really didn't apply, but your mention of the sceneBoundingRect function helped, because this code:
// JSL - Calculate the location of the position of the item on the icon
rect = sceneBoundingRect();
point1 = rect.topLeft();
point2 = scene()->itemsBoundingRect().topLeft();
drawData.iconPos= point1 - point2;
QRectF rect;
QPointF point1, point2;
// JSL - Calculate the location of the position of the item on the icon
rect = sceneBoundingRect();
point1 = rect.topLeft();
point2 = scene()->itemsBoundingRect().topLeft();
drawData.iconPos= point1 - point2;
To copy to clipboard, switch view to plain text mode
seems to be doing the trick. Thanks again. I think I can move on from here.
Bookmarks