make a slot lets say slotIntToDouble(int);
Qt Code:
  1. connect(this,SIGNAL(valudeChanged(int)),this,SLOT(slotIntToDouble(int)));
  2.  
  3. void MySlider::slotIntToDouble(int value)
  4. {
  5. double d=value;
  6. emit valueChanged(d);
  7. }
To copy to clipboard, switch view to plain text mode