s = new QSplitter(this); s->setOrientation(Qt::Vertical); tb->horizontalHeader()->hide(); tb->verticalHeader()->hide(); s->addWidget(tb); s->addWidget(l); QVBoxLayout* grid = new QVBoxLayout(this); grid->setMargin(0); grid->addWidget(s); setLayout(grid);