Set Vertical Alignment of QFormLayout QLabel
I'm using PySide/PyQt, but this is a general Qt question. Is there a way to set up a QFormLayout so that labels are centered vertically without having to explicitly create the QLabel's and set their vertical size policy to expanding first? When the widget in column 2 is taller than my label, I want my label to be centered vertically with the widget, rather than aligned with it's top... Here's an example script that demonstrates the problem. I've colored the labels red to better demonstrate their size behavior. from PySide import QtCore, QtGui app = QtGui.QApplication([]) widget = QtGui.QWidget