I am using Qt4.83 with Mac OSX 10.8 and windows 7.
I have to fix the problem of maximizing the window to full screen when the user clicks on "Maximize" button on menu bar.
I wanted to fix it within "mainwindow.ui" (rather than "ui_mainwindow.h" , only because it is generated code and all the changes made here will be lost in recompile). I tried playing around with the property "maximumSize" for main window.I tried to remove this property, set the values to "0" etc. - but nothing works on Mac OSX 10.8. Even I tried with generated file "ui_mainwindow.h" by commenting out "MainWindow->setMaximumSize()" but it did not work. I mean, the effect was, the main window simply disappeared and nothing visible on the screen.
However, I found that for Windows (windows 7 and XP), if I commented out "MainWindow->setMaximumSize()" , it worked as desired.
My question is - how can I maximize the main window to full screen for Mac OSX and Windows , preferably using mainwindow.ui and not from "ui_mainwindow.h"?
Bookmarks