Results 1 to 9 of 9

Thread: How do I get the value from the slider's position?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How do I get the value from the slider's position?

    Quote Originally Posted by JeremyK View Post
    I tried to connect the slider to the push button using the value changed signal but this only works one time for the first push button.
    Instead of that you connect the valueChanged(int) signal to a slot and the do a switch on the value passed to that slot.
    For each value the respective case statement will then call the appropriate slot.

    Cheers,
    _

  2. The following user says thank you to anda_skoa for this useful post:

    JeremyK (19th May 2013)

Similar Threads

  1. view position of mouse position in GraphicsScene
    By Raghaw in forum Qt Programming
    Replies: 2
    Last Post: 23rd August 2012, 04:46
  2. Replies: 4
    Last Post: 3rd August 2010, 12:30
  3. help on my slider
    By newb in forum Qt Programming
    Replies: 1
    Last Post: 13th July 2010, 15:36
  4. Replies: 2
    Last Post: 21st March 2010, 09:01
  5. get slider value
    By eric in forum Qt Programming
    Replies: 1
    Last Post: 8th November 2007, 19:47

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.