Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QTransform trans;
- trans.translate(boundingRect().width()/2,boundingRect().height()/2);
- trans.rotate(value, Qt::XAxis);
- trans.translate(-boundingRect().width()/2,-boundingRect().height()/2);
- setTransform(trans);
Add Comment
Please, Sign In to add comment