you could place for example empty labels on position (0,0), (0,1) and so on to solve this issue
this would look like this:
layout->addWidget(label,0,0,2,1);
layout->addWidget(yourGroupBox,2,1);
//add some additional label to place your groupbox at 2,1 (wherever this might be)
QLabel *label = new QLabel("");
QGridLayout *layout = new QGridLayout();
layout->addWidget(label,0,0,2,1);
layout->addWidget(yourGroupBox,2,1);
//add some additional label to place your groupbox at 2,1 (wherever this might be)
To copy to clipboard, switch view to plain text mode
Bookmarks