PDA

View Full Version : Setting the video mode



jimboqt
20th September 2008, 22:19
Hello

Is it possible to set the video mode in Qt4?

For example, I want to run a fullscreen app that uses OpenGL in 800 x 600 x 32bit colour.

Up until now I've used SDL to set the videomode, but wanted to know if Qt can do it, and couldn't find it in the documentation.

Thanks in advance.

Jimbo

aamer4yu
21st September 2008, 01:01
What if u apply this on the widget -
setWindowState(Qt::WindowFullScreen) ??

jimboqt
21st September 2008, 09:52
Hi

Yeah, that's fine, but I need to set the video mode too (resolution) to 800x600 because my desktop runs in 1600x1200.

Any ideas, anyone?

Thanks again