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. Flickable issue with MouseArea and preventStealing
Qt 6.11 is out! See what's new in the release blog

Flickable issue with MouseArea and preventStealing

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

    I'm using Qt 4.7.4. I have a ListView with a MouseArea filling it. I'm using the MouseArea's containsMouse property (with hoverEnabled) to set properties for a custom scrollbar I've built.

    I've noticed that when I flick by holding the mouse inside the ListView, upon release of the mouse button my containsMouse is set to false. It looks like the flicking event takes over my MouseArea and invalidates it (if that's the right term).

    I've tried using the preventStealing property, but once that is set to true, my ListView does not allow flicking by mouse drag altogether.

    The preventStealing property is mentioned in the documentation with reference to Flickable, but am I using it wrong?
    "http://doc-snapshot.qt-project.org/4.8/qml-mousearea.html#preventStealing-prop":http://doc-snapshot.qt-project.org/4.8/qml-mousearea.html#preventStealing-prop

    "Roads? Where we're going, we don't need roads."

    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