Project

General

Profile

Wt get resolution of viewport

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


Replies (1)

RE: Wt get resolution of viewport - Added by Wim Dumon almost 7 years 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)