Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Best way to scroll on mouse move to "edge/out of" of screen
Forum Updated to NodeBB v4.3 + New Features

Best way to scroll on mouse move to "edge/out of" of screen

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 3.4k 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.
  • I Offline
    I Offline
    icetbr
    wrote on last edited by
    #1

    Hi, I want to make my a vertical and horizontal scrollable area, and one of the challenges is scrolling without clicking. Right now I'm using a 1ms intervall Timer that is activated when the mouse is at about 10 pixels from the edges of screen.

    I wonder if there is a better approach. All I want to do is change the "click and drag anywhere" behaviour of Flickable to a "move at the edge or outside window" one. Flickable has some nice properties, like flickDeceleration and max velocity that would be nice to have.

    Thanks

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

      I think you can try with using MouseArea hoverEnabled property and somehow activate Flickable scrolling on mouse moving.

      1 Reply Last reply
      0
      • I Offline
        I Offline
        icetbr
        wrote on last edited by
        #3

        Yes, that's the trick. Only by faking (c++) a mouse click I would be able to do that. As it stands, I'm trying to find a suitable animation and its values to simulate deceleration.

        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