Something similar to GTK + GtkSizeGroup in Qt?

GTK + has a widget called GtkSizeGroup , which is used to synchronize widget sizes that do not have the same parent. Is there a similar widget in Qt?

UPDATE Parents of widgets are different. I have 2 group boxes, and inside them there are / QLineEdits tags. I would like to build them.

+-[ Group1 ]----------------------+
|              ------------------ |
| longer label |                | |
|              ------------------ |
+---------------------------------+
+-[ Group2 ]----------------------+
|       ------------------        |
| label |                |        |
|       ------------------        |
+---------------------------------+
+3
source share
2 answers

QLayout ( , ), eventFilter resizeEvent - ( ) , , . , , .

+2

, QLayout. .

+1

Source: https://habr.com/ru/post/1776920/


All Articles