Hi !
Does anyone know how to do from Qt Designer 3.2 to prevent the user from resizing a QMainWindow ?
Thanks !
Hi !
Does anyone know how to do from Qt Designer 3.2 to prevent the user from resizing a QMainWindow ?
Thanks !
Warning, I'm a beginner !
Just set the same values in minimumSize and maximumSize properties.
I've tried this but though I'm not able to enlarge the window I'm still able to reduce his size.
And how to get rid of the small triangle ?
Warning, I'm a beginner !
Qt Code:
statusBar()->setSizeGripEnabled( false );To copy to clipboard, switch view to plain text mode
Flier (14th April 2006)
You should also be able use setFixedSize() (if it's not defined in QDialog).
Flier (14th April 2006)
Thanks for your answers !
As it would seem one could not manage totally this from Qt Designer 3.2, I did it that way (perhaps there's a better way ?) :
I set up the maximumSize (width and height) in Qt Designer and in the code, I wrote the following :
s_max = MyQMainWin->maximumSize();
MyQMainWin->statusBar()->setSizeGripEnabled( FALSE );
MyQMainWin->show();
MyQMainWin->setFixedSize( s_max );
If setFixedSize() is placed before show(), it's still possible to shrink the Window.
Warning, I'm a beginner !
Bookmarks