Hello to all!

I've been trying for whole day to make following demand work:

I have a QDockWidget on QMainWIndow. In this QDockWIdget I want to have an QGLWidgeet containing some animation and beneath in horiz layout two QPushButtons.

I wrote following code:
Qt Code:
  1. COperationWIndow::COperationWIndow(QWidget* pParent) : QDockWidget(pParent)
  2. {
  3. //setAllowedAreas(Qt::LeftDockWidgetArea); // sets allowed dock area
  4. setWindowTitle(trUtf8("Izbor ponudbe jedi in pijač")); // sets window title
  5.  
  6. // layout creation
  7. m_pVLayout=new QVBoxLayout(this); // creates new vertical layout
  8. Q_CHECK_PTR(m_pVLayout); // checks creation
  9. m_pHLayout=new QHBoxLayout(this); // creates new horizontal layout
  10. Q_CHECK_PTR(m_pHLayout); // checks creation
  11.  
  12. // creates merchandize browser
  13. m_pMerchandizeBrowser=new CMerchandizeBrowser(this); // creates new merchandize selector
  14. //m_pMerchandizeBrowser=new CMerchandizeBrowser(pParent); // creates new merchandize selector
  15. Q_CHECK_PTR(m_pMerchandizeBrowser); // checks creation
  16. m_pVLayout->addWidget(m_pMerchandizeBrowser); // adds merchandize selector to vertical layout
  17.  
  18. // creates Left Selector pushbutton
  19. m_pLeftButtonMerchandizeSelector=new QPushButton(trUtf8("Izbira levega artikla"), this);
  20. //m_pLeftButtonMerchandizeSelector=new QPushButton(trUtf8("Izbira levega artikla"), pParent);
  21. Q_CHECK_PTR(m_pLeftButtonMerchandizeSelector); // checks creation
  22.  
  23. // creates Right Selector pushbutton
  24. m_pRightButtonMerchandizeSelector=new QPushButton(trUtf8("Izbira desnegs artikla"), this);
  25. //m_pRightButtonMerchandizeSelector=new QPushButton(trUtf8("Izbira desnegs artikla"), pParent);
  26. Q_CHECK_PTR(m_pRightButtonMerchandizeSelector); // checks creation
  27.  
  28. m_pHLayout->addWidget(m_pLeftButtonMerchandizeSelector); // adds button to horiz. layout
  29. m_pHLayout->addWidget(m_pRightButtonMerchandizeSelector); // adds button to horiz. layout
  30.  
  31. m_pVLayout->addLayout(m_pHLayout); // add horiz. layout to vertical layout
  32. setLayout(m_pVLayout); // sets main layout on widget
  33. setLayout(m_pHLayout); // sets main layout on widget
  34. //setWidget(m_pMerchandizeBrowser);
  35. }
To copy to clipboard, switch view to plain text mode 

but this does not work. QGLWidget is not even seen, both qpushbuttons are located in the left upper corner one behind other. What the heck is going on???!!