Thank you for your reply, Thomas Zander.
I know the basics of QML you mention.
My problem is that the behavior of the samples I have described doesn’t follow the ‘basic 2’ (an mouse area or drop area on top of another blocks events from the one below it.).
Check the ‘Sample3’. ‘dropArea2’ is on top of ‘dropArea1’.
When I do “2) Then drag ‘rectDrag’ to the intersection between ‘rectGreen’ and ‘rectBlue’.”, the ‘dropArea2’ should block ‘dropArea1’ (console should print: onExited 2 onEntered) following the ‘basic 2’. But it doesn’t happen, so console prints nothing.
Notice: you should do “1) Drag ‘rectDrag’ to ‘rectGreen’. —- console print: onEntered” first, then do “2) Then drag ‘rectDrag’ to the intersection between ‘rectGreen’ and ‘rectBlue’.”.
Similiarly, you can check the ‘Sample1’ and ‘Sample2’.
In ‘Sample1’, when I do “1) Drag the ‘red’ rectangle to ‘blue’ rectangle.”, the console should print ‘onEntered 2’, but the console print ‘onEntered onEntered 2’.
The DropArea hierarchy in ‘Sample1’ is the same as DropArea hierarchy in ‘Sample2’. But their behavior is different.
↧