Important: Please read the Qt Code of Conduct -

Detecting mouse release on ListView drag

  • Hi all,

    I'm making a nice pull-to-reload ListView header (based on ), 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?

Log in to reply