Added by jakub jirsa almost 7 years ago
Hi,
I need to get resolution of viewport. I found out how to get resolution of current screen but thats not what I am looking for.
Thank you very much for help
Hey,
The easiest way is to put a layout manager on WApplication::root(), and then use WWidget::setLayoutSizeAware() in order to get updated when the size of the viewport changes.
Wim.