Wt get resolution of viewport

Added by jakub jirsa 2 months 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


Replies (1)

RE: Wt get resolution of viewport - Added by Wim Dumon 2 months ago

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.

(1-1/1)