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
QML and Qt Quick
2
Posts
1
Posters
1.4k
Views
1
Watching
-
I have a
GridView, and its delegate is covered by aMouseArea. I have attached events to the MouseArea'sonExitsignal. 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, butonExithas never fired. I could attach an event to the GridView'sonMovementEndedsignal, 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 isonExitnot fired if I move the cursor outside of the GridView that contains all the MouseAreas?