title: Qwtslider layout - show current value
body: <p>i have a slider and apart from the scale that i was able to make it to be shown i want a label that shows me what's the current value of the slider, and when i slide it, it will change to the current position. Something like in this link from qwt.sorceforge.net</p>
  
  <p><a href="http://qwt.sourceforge.net/sliders.png" rel="nofollow">http://qwt.sourceforge.net/sliders.png</a></p>
  
  <p>here's my slider code:</p>
  
  <pre><code>Slider = new QwtSlider(centralWidget);
  Slider-&gt;setObjectName(QString::fromUtf8("Slider"));
  Slider-&gt;setGeometry(QRect(520, 40, 60, 500));
  QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Fixed);
  sizePolicy1.setHorizontalStretch(0);
  sizePolicy1.setVerticalStretch(0);
  sizePolicy1.setHeightForWidth(Slider-&gt;sizePolicy().hasHeightForWidth());
  Slider-&gt;setSizePolicy(sizePolicy1);
  QFont font;
  font.setFamily(QString::fromUtf8("Bitstream Charter"));
  font.setPointSize(9);
  Slider-&gt;setFont(font);
  Slider-&gt;setCursor(QCursor(Qt::ArrowCursor));
  Slider-&gt;setOrientation(Qt::Vertical);
  Slider-&gt;setScalePosition(QwtSlider::LeftScale);
  Slider-&gt;setBgStyle(QwtSlider::BgTrough);
  Slider-&gt;setThumbLength(20);
  Slider-&gt;setThumbWidth(10);
  Slider-&gt;setBorderWidth(2);
  Slider-&gt;setRange(xmin, xmax, step);
  Slider-&gt;setScale(xmin, xmax+1, (xmax+1)/16);
  </code></pre>