ti->widg = new QWidget; ti->widg->setLayout(ws); ti->vbox = new QVBoxLayout(ti->widg); ti->vbox->addWidget(ti->hbox);