если убрать QFormLayout (f1 и f2), то все ок, а с ними - никак…
import sys
from PyQt4.QtGui import *
if __name__ == "__main__":
app = QApplication(sys.argv)
q=QDialog()
q.setLayout(QVBoxLayout())
f1=QFormLayout()
f1.addRow("label1", QLineEdit("1"))
f2=QFormLayout()
f2.addRow("label2", QLineEdit("2"))
##############################
v1=QVBoxLayout ()
t=QTextEdit("v1")
v1.addWidget(t)
##############################
h2=QHBoxLayout ()
h2.addWidget(QLabel("hor label2"))
h2.addWidget(QLineEdit("h2"))
q.layout().addLayout(f1)
q.layout().addLayout(v1)
q.layout().addLayout(f2)
q.layout().addLayout(h2)
#q.layout().addStretch(1)
q.show()
sys.exit(app.exec_())