Hi to all,
I would display a little image at the left of a QSlider. The slider change the volume of a song and instead of put the text Volume: near the slider
I would display a little icon representing the volume so the user can know the meaning of the slider.
I would layout orizontally the icon and the slider so:

Qt Code:
  1. m_panPixmap = new QLabel;
  2. QPixmap panPixmap(":/images/pan.png");
  3. panPixmap.scaled(5,5);
  4. m_panPixmap->setPixmap(panPixmap);
  5.  
  6. m_panSlider = new QSlider(Qt::Horizontal);
  7. m_panSlider->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
  8. m_panSlider->setMinimum( -100 );
  9. m_panSlider->setMaximum( 100 );
  10. m_panSlider->setValue( 0 );
  11.  
  12. QVBoxLayout panLayout;
  13. panLayout.addWidget(m_panPixmap);
  14. panLayout.addWidget(m_panSlider);
To copy to clipboard, switch view to plain text mode 

and then add to the main vertical layout
Qt Code:
  1. vl->setSpacing(20);
  2. vl->addLayout(ll);
  3. vl->addStretch(1);
  4. vl->addLayout(&panLayout); //<-- this is the pan layout
  5. ..more code
To copy to clipboard, switch view to plain text mode 

My problem is that the image is displayed too big and it break the layout. The image and the slider are not displayed correctly.
How can I solve my problem?

Best Regards,
Franco