Results 1 to 3 of 3

Thread: Video and QSlider

  1. #1
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Thanks
    37
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Red face Video and QSlider

    I want to use a QSlider to show the progress of my video playing in my application. First, does anyone know how to determine the number of frames in the video? Secondly, is there an easy way to update the QSlider while the video is playing so the slider will work like the sliders work in common players like WinAmp and Windows Media Player. Thanks for any help you have. I am using DirectShow to render the video.

  2. #2
    Join Date
    Jan 2006
    Posts
    109
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Video and QSlider

    About the number of frames in the video file, this is really not related to Qt, the answer depends on the library used to read and display the video - DirectShow in your case.

    Otherwise use QSlider::setValue().

  3. #3
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Thanks
    37
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Video and QSlider

    Okay...so I will probably just call that repetitvely while the video plays. Thanks!

Similar Threads

  1. subclass QSlider to go to a value on one click
    By THRESHE in forum Qt Programming
    Replies: 3
    Last Post: 26th May 2008, 18:22

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.