PDA

View Full Version : QToolBox, how to set layout to item



sergey_85
30th November 2009, 12:23
Hi!

QToolBox *box = new QToolBox(this);

QWidget *wgt = new QWidget();

toolbox->addItem(wgt, "New tab");

How to add QVBoxLayout to item?

Lykurg
30th November 2009, 12:48
How to add QVBoxLayout to item?

Normal like any other widget:

QToolBox *box = new QToolBox(this);

QWidget *wgt = new QWidget();
wgt->setLayout(...);

toolbox->addItem(wgt, "New tab");