I have a QGridLayout
with a QSplitter
on it. In this QSplitter
, I have two separator elements that allows me to move the splitter from left to right. Well, everything is in order there. But then I want to add another splitter, but it moves down. (I will explain with the image.)
Thus, it basically has 2 splitters, one of which moves from left to right and the other that moves up and down.
I hope you understand.
QGridLayout *layout = new QGridLayout(this); QSplitter *splitter = new QSplitter(); 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);
Here I add only 1 splitter, because I do not know how to make a second one.
Kazuma
source share