Hello
I am looking for some sample code that shows how to use QTimer to animate a QSlider. I would really appreciate any examples that might be available. Basically, I would like to use QTimer to increment the slider, every xxx ms. Thanks
Hello
I am looking for some sample code that shows how to use QTimer to animate a QSlider. I would really appreciate any examples that might be available. Basically, I would like to use QTimer to increment the slider, every xxx ms. Thanks
something like -
Qt Code:
connect(timer,SIGNAL(timeout()), this,SLOT(onTimeout())); myClass::onTimeout() { slider->setValue( slider->value() + increment ); }To copy to clipboard, switch view to plain text mode
hope you get the idea
Bookmarks