Hmm i can't seem to manage to find an elegant way of doing this... anyone have any ideeas?
Hmm i can't seem to manage to find an elegant way of doing this... anyone have any ideeas?
Just call this function with your preferred size parameters.
Qt Code:
mainWindow->setFixedSize(200,200);To copy to clipboard, switch view to plain text mode
Goldmmbr (10th November 2009)
Just to expand on what yogeshgokul mentioned and if this helps...I believe you can also do
Qt Code:
mainWindow->setMaximumSize(200, 200);To copy to clipboard, switch view to plain text mode
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!
Bookmarks