I have 2 frames arranged by a splitter.
I'd want 200 px min for frame1 (the left).
Sincerely I dont know what policy to apply ( nothing works)
Any help would be appreciated
Printable View
I have 2 frames arranged by a splitter.
I'd want 200 px min for frame1 (the left).
Sincerely I dont know what policy to apply ( nothing works)
Any help would be appreciated
Set the QWidget::sizePolicy() of the left widget to QSizePolicy::MinimumExpanding for horizontal, and its minimum width to 200 QWidget::setMinimumWidth()
Code:
Q_OBJECT public: left->setMinimumWidth(200); splitter->addWidget(left); splitter->addWidget(right); setCentralWidget(splitter); } public slots: private: };