#include <QtGui/QApplication>
#include <QtGui/QTextEdit>
#include <QtGui/QSplitter>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QTextEdit* text1 = NULL;
QTextEdit* text2 = NULL;
QSplitter* splitter;
text1 = new QTextEdit;
text2 = new QTextEdit;
splitter = new QSplitter(Qt::Vertical);
splitter->addWidget(text1);
QTextEdit* text3 = new QTextEdit;
QSplitter* sp1 = new QSplitter(Qt::Horizontal);
splitter->addWidget(text2);
splitter->setStretchFactor(1,1);
sp1->addWidget(splitter);
sp1->addWidget(text3);
sp1->show();
return a.exec();
}