Hello!
I know that it is possible to have a unmaximized window and when maximized its contents to be resized as well so as to fit the screen.
But I don't have a tip, can you give one?
Hello!
I know that it is possible to have a unmaximized window and when maximized its contents to be resized as well so as to fit the screen.
But I don't have a tip, can you give one?
When you 're trying to help somebody in the newbie section, don't forget that he is a newbie. Be specific and give examples.
The easiest way is to create your user interface in Qt Designer
Remember to place all the components in layouts, not forgetting about a layout for the main widget
Last edited by Rachol; 28th June 2011 at 08:22.
If I understand correctly:
You may maximize window, using next function of QMainWindow
For resize contents You must use layout on your form.
That's right. However to maximize your window you must use following
Qt Code:
To copy to clipboard, switch view to plain text mode
Yes, I was not right. Use Myself
Qt Code:
MainWindow w; w.show(); w.showMaximized(); return a.exec();To copy to clipboard, switch view to plain text mode
Bookmarks