How to get widget (Button) "world" size?

Hello.
How to get widget (Button) “world” size (after all scale, anchor and other transformations I’ve done to it)?
Like I get widget getWorldPosition();
Thank you.

Ooops, in my case this helped:

Button * pb; // = ...
auto sz = pb->getSize();
auto sc = pb->getScale();
auto new_sz = Size(sc*sz.width, sc*sz.height);

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.