PDA

View Full Version : how to display a window full screen??



Seema Rao
8th May 2006, 12:59
hi all,
I am using Qt4 on Linux, can some body explain how to display an app full screen?
Hard-cored values like this work fine, but give different results for different display,

setFixedSize(1020,680);
resize(1020,680);

Thanks in advance,
Seema Rao..

jacek
8th May 2006, 13:07
Have you tried this?
void QWidget::showFullScreen () [slot]
Shows the widget in full-screen mode.
Calling this function only affects windows.
To return from full-screen mode, call showNormal().
Full-screen mode works fine under Windows, but has certain problems under X. [...]
X11 window managers that follow modern post-ICCCM specifications support full-screen mode properly.
See also showNormal(), showMaximized(), show(), hide(), and isVisible().