lang/pyside/ PysideLayouts


Note that we add layouts to QWidget's, not to QWindow's. The QMainWindow class can be treated as a widget. The QWindow class is for other things. Thus

win = QWidget() # QWidget, not QWindow
hbox = QHBoxLayout(win)
s1 = QSlider()
hbox.addWidget(s1)
win.show()