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. [SOLVED] QSlider don't react on mouse wheel
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] QSlider don't react on mouse wheel

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 4.8k 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.
  • A Offline
    A Offline
    Anticross
    wrote on last edited by
    #1

    If I set the range of my slider from 0 to 65535 it don't react on wheel scrolling. But when I set the range from 0 to 100 it's all OK. Why this happens and what shall I do to make it scrollable by mouse wheel with range from 0 to 65535?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      ludde
      wrote on last edited by
      #2

      I'm pretty sure it does react, you just cannot see it because it moves with such small steps compared to the range. To see it move, you'll have to adjust the singleStep and/or pageStep properties accordingly.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Anticross
        wrote on last edited by
        #3

        If I set single step to 65535/100 it really moves when I use arrows on keyboard, but not when mouse wheel.

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

          Ok now when I set single step and page step to 65535/100 it works both cases. So : "To see it move, you’ll have to adjust the singleStep AND pageStep properties accordingly." Thanks , ludde.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            ludde
            wrote on last edited by
            #5

            Well I'm pretty sure it's just one of them that has to do with wheel scrolling, I just didn't know which one. Seems to be the pageStep, which means you probably don't have to set the singleStep.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Anticross
              wrote on last edited by
              #6

              Exactly, but if anyone need also scroll by using arrow keys they need to set singleStep.

              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