
Originally Posted by
Peppy
It still doesn't work

...I used QVBoxLayout and it doesn't work...do you have any idea how can I do it?
I think that your code is incomplete.
This works for me:
tabWidget
->addTab
(tab_2,
QString());
horizontalLayout->addWidget(tabWidget);
horizontalLayout = new QHBoxLayout();
tabWidget = new QTabWidget();
tab = new QWidget();
tabWidget->addTab(tab, QString());
tab_2 = new QWidget();
tabWidget->addTab(tab_2, QString());
horizontalLayout->addWidget(tabWidget);
To copy to clipboard, switch view to plain text mode
Then you can set sizePolicy and/or max-min Size for the tabWidget (or add vertical spacer) if you don't want to lay out all the height.
Bookmarks