Nothings wrong... just the centre axis...
The items are rotated on axis of (0,0). So when you right click, they are rotated in relation to (0,0).
Just change your points in shape() and boundingRect() to -
Now (0,0) will be in centre of the triangle and you will get the result you wantQPointF p1(0,-40);
QPointF p2(-40,40);
QPointF p3(40,40);![]()




Reply With Quote
aint() function ??

Bookmarks