Using QSlider to control QTimer
-
hi guys,
I need to create an interface to show some video data. I need to control the video display using QSlider, i.e., I need the slider to let me choose which frame I want to see in the viewer (QLabel).
Can anyone tell me how to do that? I found some info here:
http://www.qtcentre.org/threads/30609-how-to-use-QTimer-to-animate-QSlider
But it doesn't say much.
Thank you in advance,
-
Just a quick google brought me to this example:
http://harmattan-dev.nokia.com/docs/library/html/qt4/multimedia-videowidget.htmlYou could make a custom video class (subclassing what ever you need to display the video), connect up to the slider value changed slot, and pump updates to your video class to tell it where to be. Furthermore, you video class can send updates to the slider to tell it where to be as well.
I don't think a QTimer is needed to accomplish your task.