summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_gui_widgets_qsplitter.cpp
blob: 62f5db15d422470a9e6b718412d7b5be4134bc23 (plain)
1
2
3
4
5
6
7
//! [0]
QWidget *widget = splitter->widget(index);
QSizePolicy policy = widget->sizePolicy();
policy.setHorizontalStretch(stretch);
policy.setVerticalStretch(stretch);
widget->setSizePolicy(policy);
//! [0]