QSplitter *splitter = new QSplitter(Qt::Horizontal);
QSplitter *splitter = new QSplitter(Qt::Vertical);This creates a vertical splitter that arranges the child widgets one above the other. These examples use the Qt library, specifically the QSplitter class within the QtGui module.