How to clear spin box value? I mean if current showing value is 5 but after clicking clear button it should go to 1. How to do this?
How to clear spin box value? I mean if current showing value is 5 but after clicking clear button it should go to 1. How to do this?
QSpinBox::setValue( 1 ) should do what you want.
nope. it doesn't. If it would I would not asked
hi,nope. it doesn't. If it would I would not asked
what u want? mention it clearly.
Bala
So how are you connecting the clicked() signal from the clear button to the setValue() call on the spinbox? Do you even know if the connection is working? Have you used the debugger to see if clicking the clear button gets to the slot that resets the spinbox value?
You should probably show us some code.
Bookmarks