QScrollArea *pScroll = new QScrollArea(m_pDockWidget);
m_pDockWidget->setWidget(pScroll);
QWidget *pTemp = new QWidget(pScroll);
pScroll->setWidget(pTemp);
QVBoxLayout *pLayout = new QVBoxLayout(pTemp);
pTemp->setLayout(pLayout);
for (int i=0; i<root.childNodes().size(); i++)
{
CLeaveMesGroupBox *pMesGroupBox = new CLeaveMesGroupBox(this);
sum += pMesGroupBox->height();
}
pTemp->setFixedSize(450, sum);
m_pDockWidget->setWidget(pScroll);
QWidget *pTemp = new QWidget(pScroll);
pScroll->setWidget(pTemp);
QVBoxLayout *pLayout = new QVBoxLayout(pTemp);
pTemp->setLayout(pLayout);
for (int i=0; i<root.childNodes().size(); i++)
{
CLeaveMesGroupBox *pMesGroupBox = new CLeaveMesGroupBox(this);
sum += pMesGroupBox->height();
}
pTemp->setFixedSize(450, sum);