Hi All,
Is there any way by which we can make the qmainwindow dynamically resizable in order to fit to screen??
Alongwith window the widgets on the window should also dynamically be resized.
Thanks in advance...
Hi All,
Is there any way by which we can make the qmainwindow dynamically resizable in order to fit to screen??
Alongwith window the widgets on the window should also dynamically be resized.
Thanks in advance...
erm, have you tried using a layout manager such as the horizontal, vertical or grid layouts?
Yes I had But Its not working ...
In order to fit your top most widget to the screen size you can use QDesktopWidget for the screen size and resize your top widget based on that.
For the widgets inside your widget use layouts.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
What does "fit to screen" means? Could you use QMainWindow's showMaximized function? It can show main window maximum.
Bookmarks