I have a QGridLayout which contains all the layout for my class. Until there everything goes fine.
I added a QSplitter for other things and then at the bottom (After the splitter) i want the QTextBrowser to be. Fine, works. But i want to resize, i meant i want to make the QTextBrowser smaller. But resize doesn't work.
QGridLayout *layout = new QGridLayout(this);
QSplitter *splitter = new QSplitter(Qt::Horizontal);
text1 = new QPlainTextEdit();
text2 = new QPlainTextEdit();
splitter->addWidget(text1);
splitter->addWidget(text2);
text1->resize(800, this->height());
layout->addWidget(splitter, 1, 0);
browser = new QTextBrowser();
browser->resize(1, 1);
layout->addWidget(browser, 2, 0);
setLayout(layout);
Actually resizing the text1 works fine, but i can't make the QTextBrowser resize fine. Any idea?