QSplitter is a Qt class used to create resizable widgets. The setChildrenCollapsible function of QSplitter class sets whether the children in the splitter can be collapsed or not.
Code Example:
```c++
QSplitter *splitter = new QSplitter();
QWidget *widget1 = new QWidget(splitter);
QWidget *widget2 = new QWidget(splitter);
splitter->addWidget(widget1);
splitter->addWidget(widget2);
//Setting children collapsible
splitter->setChildrenCollapsible(true);
```
In the above example, a QSplitter is created with two child widgets. The `setChildrenCollapsible` function is used to set whether the children can be collapsed or not. Here, the value is set to `true`, which means the user can collapse any of the child widgets by double-clicking on the splitter handle.
Package library: Qt.
C++ (Cpp) QSplitter::setChildrenCollapsible - 20 examples found. These are the top rated real world C++ (Cpp) examples of QSplitter::setChildrenCollapsible extracted from open source projects. You can rate examples to help us improve the quality of examples.