Hi,
I trying to layout my widgets but it doesn't work.

I would create 2 widget with a fixed hight and an expanding width but it doesn't work.
I create them so:

Qt Code:
  1. CentralWidget::CentralWidget( QWidget* parent /* = 0 */ )
  2. : QWidget(parent),
  3. mp_vBox( 0 ),
  4. m_pWaveU( 0 ),
  5. m_pWaveD( 0 )
  6. {
  7. /* vertical LAYOUT */
  8. mp_vBox = new QVBoxLayout( this );
  9.  
  10. /* 2 WAVEFORM DISPLAY */
  11. m_pWaveU = new WaveDisplay( this );
  12. m_pWaveU->setGeometry(0, 0,200,150); // I would for this a fixed geometry in height
  13. m_pWaveU->setSizePolicy( QSizePolicy::Ignored, QSizePolicy::Minimum );//I WOULD THIS WITH A FIXED HEIGHT AND THAT IT CAN EXPAND HORIZONTALY
  14.  
  15. m_pWaveD = new WaveDisplay( this );
  16. m_pWaveD->setSizePolicy( QSizePolicy::Ignored, QSizePolicy::Ignored );
  17. mp_vBox->addWidget( m_pWaveU );
  18. mp_vBox->addSpacing( 15 );
  19. mp_vBox->addWidget( m_pWaveD );
  20. setLayout(mp_vBox);
  21. }
To copy to clipboard, switch view to plain text mode 

Where my code is wrong?
Best Regards