简体   繁体   中英

Fixed width widget in QSplitter

I have 3 QWidget s placed into one horizontal QSplitter . So there is left, central and right QWidget . And I have 2 grappling point (is this how is it called?): between left/central and central/right QWidget s.

What I want is to have central widget of fixed width, so when I move oned grappling point left/right, the other one should move exactly the same way.

I've tried setting horizontal policy of QSizePolicy of central widget to Fixed and Minimum . Also I've tried horizontal stretch for left and right widgets to 1, but none of these helped.

QWidget::setFixedWidth applied to the widget you would like to have a fixed width. That one of course wants you to specify that width.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM