In the following way we add to the dialog some widgets, which automatically resize by dialog size.
QLabel *m_pLabelApp;QTextBrowser *m_pTextBrowser;QWidget *m_pHorizontalLayout;QHBoxLayout *m_pHBoxLayout;m_pLabelApp = new QLabel(QDialog);m_pTextBrowser = new QTextBrowser(QDialog);m_pHorizontalLayout = new QWidget(QDialog);m_pHBoxLayout = new QHBoxLayout(m_pHorizontalLayout);QVBoxLayout *pMainLayout = new QVBoxLayout;pMainLayout->addWidget(m_pLabelApp);pMainLayout->addWidget(m_pTextBrowser);m_pHorizontalLayout->setLayout(m_pHBoxLayout);pMainLayout->addWidget(m_pHorizontalLayout);setLayout(pMainLayout);>