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
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()
Qt Code:
Q_OBJECT public: left->setMinimumWidth(200); splitter->addWidget(left); splitter->addWidget(right); setCentralWidget(splitter); } public slots: private: };To copy to clipboard, switch view to plain text mode
Last edited by ChrisW67; 24th July 2011 at 01:59.
Bookmarks