QGridLayout *layout = new QGridLayout;
layout->setContentsMargins(0, 24, 0, 0);
tabWidget = new QTabWidget;
tabWidget->addTab(new t1(), tr("t1"));
tabWidget->addTab(new t2(), tr("t2"));
QScrollArea *scrollArea = new QScrollArea;
scrollArea->setWidget(tabWidget);
layout->addWidget(scrollArea);
setLayout(layout);