Results 1 to 3 of 3

Thread: Connect seek slider

  1. #1
    Join Date
    Mar 2009
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Connect seek slider

    How do i connect two players to one seekslider, play and stop button?

  2. #2
    Join Date
    May 2010
    Posts
    61
    Thanks
    2
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Connect seek slider

    Hi klaviaturist,

    Connect each player's SIGNAL to the one seekslider SLOT.
    Nothing is stopping you to have multiple signals connected to one slot.

    Something like this:
    Qt Code:
    1. connect( player_1, SIGNAL(progress(int)), seekslider, SLOT(setProgress(int)) );
    2. connect( player_2, SIGNAL(progress(int)), seekslider, SLOT(setProgress(int)) );
    To copy to clipboard, switch view to plain text mode 

    Regards,
    Wladek
    One second is long, everything longer than two seconds is definitely too long.

  3. #3
    Join Date
    Mar 2009
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Connect seek slider

    That solution will not work. The slider I am using is a Phonon::Seekslider

Similar Threads

  1. Replies: 10
    Last Post: 3rd February 2011, 12:27
  2. How to use the QFile::seek() in Qt-4.4.3
    By grsandeep85 in forum Qt Programming
    Replies: 2
    Last Post: 3rd April 2010, 12:54
  3. Replies: 2
    Last Post: 21st March 2010, 10:01
  4. sqlite seek() bug?
    By ibergmark in forum Qt Programming
    Replies: 1
    Last Post: 12th March 2008, 08:44

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.