Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Using QSlider to control QTimer

Using QSlider to control QTimer

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ArchGabe
    wrote on last edited by
    #1

    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,

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vezprog
      wrote on last edited by
      #2

      Just a quick google brought me to this example:
      http://harmattan-dev.nokia.com/docs/library/html/qt4/multimedia-videowidget.html

      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.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ArchGabe
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved