#include <QApplication>
#include <QSplitter>
#include <QPushButton>
#include <QHBoxLayout>
#include <QTextEdit>
int main(int argc, char *argv[]){
QApplication prog(argc, argv);
QWidget *mainWindow = new QWidget();
QSplitter *splitter = new QSplitter();
QPushButton *one = new QPushButton("one");
QPushButton *two = new QPushButton("two");
splitter->addWidget(one);
splitter->addWidget(two);
QHBoxLayout *layout = new QHBoxLayout();
layout->addWidget(one);
layout->addWidget(two);
mainWindow->setLayout(layout);
mainWindow->show();
return prog.exec(); // re loops the program; a little like a while loop
}