Qt formlayout not expanding qplaintextedit vertically
It seems that, by default, a QFormLayout
will only resize the height of its fields according to their sizeHint
.
To change this behaviour, adjust the vertical stretch as appropriate:
policy = widg.sizePolicy()
policy.setVerticalStretch(1)
widg.setSizePolicy(policy)