[Interest] DragLeaveEvent not called?
Etienne Sandré-Chardonnal
etienne.sandre at m4x.org
Mon Sep 2 10:41:17 CEST 2013
Hi,
I'm still experimenting Drag&Drop. I have experience in Qt since 2002 but
this is the first time I am trying drag & drop...
In my main widget, I have a dragDropZone widget which is the active
dropping zone.
In the main widget constructor, I call:
ui->dragDropZone->setAcceptDrops(true);
ui->dragDropZone->installEventFilter(this);
Then in the event filter:
if(event->type()==QEvent::DragEnter){ info("Enter!"); return
true;}else if(event->type()==QEvent::DragLeave){ info("Leave!"); return
true;}
But I get only "Enter!" messages.
Does another event take precedence over dragleave if accepted?
Thanks!
Etienne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130902/dc209eaf/attachment.html>
More information about the Interest
mailing list