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. Moving direction of QSlider

Moving direction of QSlider

Scheduled Pinned Locked Moved General and Desktop
4 Posts 4 Posters 2.9k 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.
  • B Offline
    B Offline
    basil_fawlty
    wrote on last edited by
    #1

    Is there a possibility to find out if a QSlider is moving to the left or right? I have tried it with comparing the old and new value but somehow it isnt working.

    Thanks in advance

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Forgive
      wrote on last edited by
      #2

      The way you're trying to check if it's moving to the left to right is something like if the new value of the slider is higher or smaller than the latest one.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        leon.anavi
        wrote on last edited by
        #3

        [quote author="basil_fawlty" date="1326588978"]I have tried it with comparing the old and new value but somehow it isnt working.[/quote]

        You can get the value of the slider using "value()":http://developer.qt.nokia.com/doc/qt-4.8/qabstractslider.html#value-prop Please share your source code to see what are you doing wrong.

        http://anavi.org/

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          Please show your code then, because comparing the value would be the most obvious solution.

          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