Qt Code:
  1. in mainwindow.h
  2.  
  3. private slots:
  4. void mySliderChanged(int);
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. in MainWindow.cpp
  2.  
  3. in constructor MainWindow::MainWindow
  4. connect(mySlider, SIGNAL(valueChanged(int)), this, SLOT(mySliderChanged(int)));
  5.  
  6. void MainWindow::mySliderChanged(int newValue)
  7. {
  8. ... send something to your statusbar ...
  9. }
To copy to clipboard, switch view to plain text mode 

In some cases you can send a value directly from one control to another, but processing a signal the way shown above, gives you freedom to change values or formats before sending it to someplace else.

Make sure that mySlider has tracking == true, if you want immidiate update when moving the slider:
Qt Code:
  1. mySlider.setTracking(true);
To copy to clipboard, switch view to plain text mode