setLayout is for some reason undefined. Maybe because my class is made with qtdesigner and is not an extension of QWidget? Also I changed the addWidget to addLayout.
What about QSplitter?
Since setLayout alone didn't work I did this...
The code in my setupUi() function: (qglMain = QGridLayout*)
qglMain->addLayout(vboxLayout, 0,0);
qglMain->addLayout(vboxLayout1, 1,0);
qglMain->addLayout(vboxLayout3, 0, 1, 2, 1);
MainWindow->setLayout(qglMain);
qglMain->addLayout(vboxLayout, 0,0);
qglMain->addLayout(vboxLayout1, 1,0);
qglMain->addLayout(vboxLayout3, 0, 1, 2, 1);
MainWindow->setLayout(qglMain);
To copy to clipboard, switch view to plain text mode
However, now it just crashes.
Commenting the setLayout line, still makes it crash.
Bookmarks