[Qt-interest] Launching an application (which should fill the screen incuding windows task bar)
Karol Krizka
kkrizka at gmail.com
Fri May 22 13:55:07 CEST 2009
On Fri, 2009-05-22 at 17:16 +0530, Santhosh Y wrote:
> Hi,
>
> I have a question regarding how to launch my application, which would
> fill the whole screen including even
> windows taskbar by default.
>
> It shoudl be impossible to minimize or resize the GUI.
That, I don't know how to help you with.
> However user will be able to move from full-screen mode to
> regular window by pressing some combnation of key "alt +J".
>
Here is how you toggle fullscreen mode on and off:
setWindowState(windowState() ^ Qt::WindowFullScreen);
Or to go to fullscreen:
setWindowState(Qt::WindowFullScreen);
Or to exit fullscreen (! is the not operator, right?):
setWindowState(!Qt::WindowFullScreen);
> User can return back to full screen mode by pressing again some
> combination of keys for whole screen mode.
--
Cheers,
Karol Krizka
http://www.krizka.net
More information about the Qt-interest-old
mailing list