Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
4.4.0
-
None
Description
A QSplitter cannot be resized to less than the combined minimum sizes of all child widgets regardless of whether or not they are collapsed.
This is most evident when the collapsed widget is a large one. The widget containing the splitter cannot be resized smaller which may be required.
Test case main.cpp to reproduce
===============================
#include <QtGui>
class FixedSizeWidget : public QWidget
{
Q_OBJECT
public:
FixedSizeWidget(QWidget *parent = 0)
: QWidget(parent)
protected:
void showEvent(QShowEvent *event)
;
};
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0)
: QMainWindow(parent)
};
#include "main.moc"
int main(int argc, char **argv)
{
QApplication a(argc, argv);
MainWindow mw;
mw.show();
return a.exec();
}