🪴 yshalsager's Digital Garden


Search IconIcon to open search

PyQT How to make a Qt Widget grow with the window size?

Last updated Jul 15, 2022

المعرفة:: Python
الحالة:: #ملاحظة_مؤرشفة
المراجع:: https://stackoverflow.com/a/6045152

In Designer, activate the centralWidget and assign a layout, e.g. horizontal or vertical layout. Then your QFormLayout will automatically resize.
Always make sure, that all widgets have a layout! Otherwise, automatic resizing will break with that widget!