Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved WheelHandler: get scroll direction

    QML and Qt Quick
    1
    2
    113
    Loading More Posts
    • 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.
    • D
      dmitry1992 last edited by dmitry1992

      Hello all.
      How to get scroll direction, using WheelHandler?
      If it's impossible, can you give me alternative decision?

      1 Reply Last reply Reply Quote 0
      • D
        dmitry1992 last edited by dmitry1992

        Found it:
        if (event.angleDelta.y > 0) {
        up()
        }
        else {
        down()
        }

        1 Reply Last reply Reply Quote 2
        • D
          dmitry1992 last edited by dmitry1992

          Found it:
          if (event.angleDelta.y > 0) {
          up()
          }
          else {
          down()
          }

          1 Reply Last reply Reply Quote 2
          • First post
            Last post