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. Detecting mouse release on ListView drag
Forum Updated to NodeBB v4.3 + New Features

Detecting mouse release on ListView drag

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.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.
  • M Offline
    M Offline
    maleadt
    wrote on last edited by
    #1

    Hi all,

    I'm making a nice pull-to-reload ListView header (based on http://www.developer.nokia.com/Community/Wiki/Pull2Reload ), for which I want to detect when the user stops dragging the list (e.g. releases his mouse/thumb). However, I can't manage to detect that properly. ListView does only provide signals for movement/drag; the ListView delegate only provides a longPress signal (can't detect mouse release); and when I tried to capture moues events using a MouseArea within the ListView or ListView delegate, I wasn't able to click on items in the list anymore. Especially this last failure surprised me, why does the MouseArea (with preventStealing=false) break the parent ListView/delegate?

    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