Hi,
I’m writing an overlay for a custom widget, that should be displayed while dragging something on it. This overlay can contain information on what will happen if the object is dropped, or different drop zones. However, it seems that adding or removing a child widget (the overlay) during a drag causes a pair QDragLeaveEvent and QDragEnterEvent to be emitted, even though acceptDrops is false on the overlay widget.
Because I create the child on dragEnter and remove it on dragLeave, this causes a loop that causes the overlay to flicker, and I can’t handle the drop correctly.
This issue only seems to happen on Mac OS (on Windows this works fine).
How should I work around this issue? Is it considered safe to change child widgets during these two events?
Thank you for your time
↧