Using QSlider to control QTimer
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:
But it doesn't say much.
Thank you in advance,
Just a quick google brought me to this example:
You 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.
Actually, that's not what I need.
I already have a video displayer using Qt + OpenCv. Now I just need to implement the slider and I don't wanna change anything.
I need to control which frame appears in the viewer.