[Closed] Is there a problem showing a window fullscreen with showFullScreen ()?
I want my application to be full screen..
So
- MainWindow w;
- w.showFullScreen();
works perfect for me.. But i see many people saying that there are some problems..
Should i do something else? If yes tell me this.. I can see the width and height of my screen with this
- int width = desk->width() ;
- int height = desk->height() ;
Then what?
- MainWindow w;
- w.setGeometry(width,height);
- w.showFullScreen();
won’t work with error:
no matching function for call to ‘MainWindow::setGeometry(int, int)’
The application is intented mainly for ubuntu 12.04(+), maybe windows and maybe mac.. Never have tried the windows or mac one.. So i am just asking if showFullScreen () is a problem…
Thanks for any answer, Leon
3 replies
I personally never experienced any problems with showFullScreen() – on either Linux (Ubuntu) or Windows platforms.
If you are seeing any problems with that function I’d use a workaround like you suggested but the function for changing the window size of your application is QWidget::resize() [qt-project.org] I’d suspect.
You must log in to post a reply. Not a member yet? Register here!


