Qt GroupBox Change Item Width With The Window

120 Views Asked by At

I have a GroupBox Which is inside a gridLayout. In the groupBox I have a QLineEdit Which I want to change width when the windows width is changed. enter image description here

1

There are 1 best solutions below

0
andrey.s On

You can add a vertical or horizontal layout into the Groupbox, this will let QLineEdit to get resized together with groupbox and main window.