With PySide, I have a QWidget set in a QVBoxLayout
vlayout = QVBoxLayout()
vlayout.addWidget(self.a_label)
vlayout.addWidget(self.a)
I can set the width of the widget with
self.a.setFixedWidth(60)
but if I try to set the width QVBoxLayoutwithsetGeometry
vlayout.setGeometry(QRect(100, 100, 100, 100))
I do not get changes.
How to set QVBoxLayout width?
source
share