Results 1 to 2 of 2

Thread: how to use QTimer to animate QSlider

  1. #1

    Smile how to use QTimer to animate QSlider

    Hello

    I am looking for some sample code that shows how to use QTimer to animate a QSlider. I would really appreciate any examples that might be available. Basically, I would like to use QTimer to increment the slider, every xxx ms. Thanks

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to use QTimer to animate QSlider

    something like -
    Qt Code:
    1. connect(timer,SIGNAL(timeout()), this,SLOT(onTimeout()));
    2. myClass::onTimeout()
    3. {
    4. slider->setValue( slider->value() + increment );
    5. }
    To copy to clipboard, switch view to plain text mode 

    hope you get the idea

Similar Threads

  1. Animate in Dialog
    By wirasto in forum Newbie
    Replies: 1
    Last Post: 11th December 2009, 12:34
  2. it's hard to animate item
    By ensky_cy in forum Qt Programming
    Replies: 5
    Last Post: 8th December 2009, 13:23
  3. animate items
    By ensky_cy in forum Qt Programming
    Replies: 2
    Last Post: 4th December 2009, 08:31
  4. animate a window
    By iGoo in forum Qt Programming
    Replies: 4
    Last Post: 27th June 2006, 11:46
  5. save animate to gif
    By Dmitry in forum Qt Programming
    Replies: 2
    Last Post: 16th February 2006, 17:35

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.