Is there a way to set a fixed width of a QHBoxLayout?
For example, when I have two small widgets in it that take up little space and I don't want the two to split over the entire screen width when I full screen the app. The widgets already have their widths set to their minimumSizeHint() widths.
Admission: I don't use PyQT, but I use Qt in C++. I believe it would work the same.
The trick here, is to as you run QHBoxLayout::addWidget(), you define a stretch factor (greater than zero) to the widgets you want to stretch. You define a zero-stretch factor (the default) to the ones you want to stay small.
Have you run QWidget::setMaximumWidth() on the smallish widgets? That would also be useful, perhaps.
PyQt4 GUI Box Layout Fixed Width