PDA

View Full Version : settransformoriginpoint not changing rotation point



moh.gup@gmail.com
28th January 2012, 15:10
Hi,
When I am trying to rotate QGraphicsitem ,its rotating around 0,0,
But on changing traformation point by settransformoriginpoint(),It again rotating around 0,0.
But my transform point get changed I checked by printing transformationpoint.
I dont want to translate rotate and re translate.

Please let me know if rotation ignore transformationpoint.

Thanks

amleto
28th January 2012, 15:38
how do you do the rotation? https://bugreports.qt-project.org/browse/QTBUG-13378

moh.gup@gmail.com
28th January 2012, 18:34
Hi
Please find sample attached code.
I am just rotating item after setting transform postion.
I tried with several transform pos.But i get same result.


Thanks

wysota
28th January 2012, 18:45
Your example sets the transformation point to 0,0.

moh.gup@gmail.com
29th January 2012, 05:14
Sir,
I tried with different values also e.g.(40,40) you can check it in attached file,but I get same result as with (0,0).
You can test with different value.And please let me know if i m wrong.



Thanks

wayfaerer
8th February 2012, 18:39
Did you ever figure out why setTransformOriginPoint wasn't working for you?

moh.gup@gmail.com
12th February 2012, 05:50
No,I havent found the reason for setTransformOriginPoint not working,Its look like bug in Qt4.7.2.Then I change my strategy.