blackberry / Qt

A popular cross-platform application framework
72 stars 23 forks source link

contentsRect() does not reflect actual display dimensions #14

Open absmall opened 12 years ago

absmall commented 12 years ago

When initially creating a QWidget and calling show, then checking the value of contentsRect() on that widget, it is not sized to fill the screen even though the window is fullscreen.

On linux with a tiling window manager that automatically launches a new window as fullscreen (which I think is the closest equivalent to playbook), contentsRect will return the full screen dimensions in this case.

On mac, or on linux with a non-tiling window manager, the window starts smaller, but the value of contentsRect() still matches the actual dimensions of the window.

Calling "resize(1024,600)" on the widget fixes the problem, but this should have been done automatically when the application was launched, as it is on linux.

nratelle commented 12 years ago

I'll look into this issue, for now you can set a window to be maximized and it will fill the screen.