qboxlayout

How exactly does addStretch work in QBoxLayout?

How exactly does addStretch work in QBoxLayout? Question: I’m doing a PyQt4 tutorial about box layouts. But I dont understand how addStretch works. If i use vbox.addStretch(1) and hbox.addStretch(1), the two buttons appear down-right. Why? if i comment vbox.addStretch(1) and hbox.addStretch(1) out, the two buttons appear in the center of my window, and they’re deformable …

Total answers: 1