[Qt-interest] Howot reimplement stepDown()/stepUp() fromQDoubleSpinBox

Ben Swerts benswerts at telenet.be
Sat Jan 3 13:03:09 CET 2009


Hi Matthias,

You should be reimplementing stepBy, which is virtual. stepUp and stepDown
are only available as slot versions of stepBy(1) and stepBy(-1)

Greets,

	Ben

> I have a class QScienceSpinBox, derived from QDoubleSpinBox.
> 
> class QScienceSpinBox : public QDoubleSpinBox
> 
> within this class I declare the slots
> 
> public slots:
>     void stepDown();
>     void stepUp();
> 
> 
> However when I use the up and down Buttons these slots are never entered.
> How would I achieve hat?
> 
> Matthias




More information about the Qt-interest-old mailing list