I'm trying to make a game using Qt, cause it is so awesome ;) and you have all the stuff you need for free. The only problem is in changing system resolution and setting QWidget (or QGLWidget) "real" fullscreen.
Have any one of you managed to do something like this? How was the portability of such approach? I'd like to deploy my app on all desktop systems.
Maybe use SDL or something like SMFL to make it fullscreen?
Pls, share your hacks!
Cheers.
This...
my_widget->setWindowState(Qt::WindowFullScreen);
... brings your widget to a full screen resolution. Isn't that what you need?
Edit: Alternatively you can call the slot showFullScreen.
Edit 2:
First you have to set corresponding window flags to make your widget modal, and also get rid of the window manager frame so it will be true fullscreen
widget->setWindowFlags(Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint);
and after that call widget->showFullScreen();
as Exa said.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With