June 26, 2011

spode spode
Lab Rat
205 posts

qml, anchors and rotating

 

if i have the rettangle on the left, how does it become if i rotate it about -90°? as the rettangle on the right?

http://imageshack.us/photo/my-images/534/immaginetud.png/()

[EDIT: fixed image link, Volker]

4 replies

June 26, 2011

Denis Kormalev Denis Kormalev
Lab Rat
1607 posts

Item rorates clockwise around transformOrigin. So -90 will be 90 degrees counterclockwise

June 27, 2011

spode spode
Lab Rat
205 posts

0k. what about the image? is it correct so?

June 27, 2011

ErikV ErikV
Lab Rat
2 posts

Yes, scaling is ignored. Note that positioning will (also) depend on the transformOrigin.

June 27, 2011

spode spode
Lab Rat
205 posts

no, it is not scaling, but rotating…

 
  ‹‹ create a plugins      setWindowModified with QGraphicsView, is it bug? ››

You must log in to post a reply. Not a member yet? Register here!