PDA

View Full Version : Circles rotation using "scene"



r2ro
9th October 2012, 12:54
This is a concept question:
Is it possible to make two circles separated by certain distance from one to the other to rotate both at the same time?

wysota
9th October 2012, 13:42
Yes, of course.

r2ro
9th October 2012, 23:08
I should have specify that the circles each one has to rotate around is respective origin and not to a common origin.
Thanks

wysota
9th October 2012, 23:51
Yes, you can do that easily with QPropertyAnimation or manually (e.g. using QGraphicsScene::advance()) using QGraphicsItem::setRotation().