Hmm i can't seem to manage to find an elegant way of doing this... anyone have any ideeas?
Printable View
Hmm i can't seem to manage to find an elegant way of doing this... anyone have any ideeas?
Just to expand on what yogeshgokul mentioned and if this helps...I believe you can also do
Code:
mainWindow->setMaximumSize(200, 200);
and setMinimumSize() as well if needed depending on if you want the user to resize or minimize the window up to a certain point.
If you are using QT Creator and a .ui you can easily access these and more by right clicking the window in the designer mode and going to the "Size Constraints" option and galore you have 6 options I believe.
Hope this helps I'm kinda new hehe! ;)