P
P
Pavel K2017-02-28 02:02:32
Qt
Pavel K, 2017-02-28 02:02:32

Superimposed DropArea on DropArea does not respond to events, how to get around?

Greetings!
For example, there are two DropArea, one above the other (if it is inside the other, everything is the same)
j7rVm.png

MyDropArea {
   id: drop1
   anchors.centerIn: parent
   width: 400
   height: 400
   color: "gray"
}

MyDropArea {
   id: drop2 
   anchors.centerIn: parent
   width: 200
   height: 200
   color: "darkgray"
}

No drop2 events are fired if the orange square is first dragged over drop1.
If you throw it on drop2 and then start dragging, then they start to be called, but as soon as you drag it over drop2 again, there will be no events, i.e. the first captures all events.
It would be easy and simple if the dragged element had "keys" for a specific DropArea, but both of them should be able to accept this orange square.
Can you tell me how to bypass this behavior?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel K, 2017-02-28
@PavelK

So, this bug is already 3 years old https://bugreports.qt.io/browse/QTBUG-36895

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question