Hello,
I'm trying to create a standard two-column form, where the first column is a text label (QLabel
) and the second column is an interactive widget, typically a text field (QLineEdit
). We have decided to place form rows that share a common theme inside a QGroupBox
, and thus in a separate layout than the main layout. Thus, the form elements inside each QGroupBox
do not horizontally align with the form elements outside of the QGroupBox
es.
How can I use group boxes and layouts in a way such that the QLabel
s and QLineEdit
s both inside and outside group boxes are (horizontally) aligned with each other?
Thanks!