Resize Objects With Mainwindow Resize
Solved
General and Desktop
-
Hi,
Use layouts. Look in the documentation for QHBoxLayout, QVBoxLayout and friends. For designer, there's the Using Layouts in Qt Designer chapter of Qt's documentation.
-
Hi
If you use layouts and put the buttons in one. Then no need
for any code to do resize.So using layouts is how you do in Visual Design.
Try this :
Make new project
open the mainwindow UI
Place a button in the empty mainwindow.
Right click empty spot on form
Select the Layout menu (bottom)
Select Layout Horizontally