I was meaning a layout, in case you have one. If the splitter is the central widget of your window then you do not need this step.You said : //next, add the splitter to some container widget.
This is because your splitter has no layout manager to handle its size and position.The form now comes up with the view and the label only a few pixels in size.
Either set the splitter as the central widget of your main window or if you use a QDialog instead, then set a QHorizontalLayout as the dialog's layout and use layout->addWidget(splitter), causing it to resize to the full client area of the dialog.
EDIT: if you want more control over the splitter's widget sizes the I suggest using QSplitter::setSizes() or QSplitter::setStretchFactor().
Bookmarks