How to change the registration/origin point of a widget?
-
By default, QWidget animates around the 0,0 coordinate (top left). I don't want that, but I don't seem to be locating the method to change its origin point.
-
Animates? What do you mean by that?
-
When using QPropertyAnimation. You know, scale, rotation - I want it happening at the widget's center, not top left.
-
First of all: there is no way to differently set the point of origin. However, I can think of two options:
- Add properties of your own for this, and animate those.
- Add a pair of translations around your own manipulations.
-
That would explain why I have problems finding it.