Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. MouseArea on GridView delegate - onExit doesn't fire if GridView dragged and released outside
Qt 6.12 LTS is out! See what's new in the release blog

MouseArea on GridView delegate - onExit doesn't fire if GridView dragged and released outside

Scheduled Pinned Locked Moved QML and Qt Quick
gridviewflickablemousearea
2 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.
  • P Offline
    P Offline
    pholz
    wrote on last edited by
    #1

    I have a GridView, and its delegate is covered by a MouseArea. I have attached events to the MouseArea's onExit signal. The problem is that when I click on a delegate and drag (to scroll the GridView), and release the mouse button after dragging outside the GridView component, I have exited the MouseArea, but onExit has never fired. I could attach an event to the GridView's onMovementEnded signal, but to do anything useful there I'd need to find out if the cursor is on one of the delegates or not - is that even possible? Why is onExit not fired if I move the cursor outside of the GridView that contains all the MouseAreas?

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pholz
      wrote on last edited by
      #2

      This problem occurs in qt 5.4 under linux. I just checked, and it doesn't occur under 5.3 - there, onExit is correctly triggered even on drag-release outside the GridView.

      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
      • Unsolved