[Interest] Problems with Drag and Drop in Windows 7
Samuel Gaist
samuel.gaist at edeltech.ch
Wed Jan 25 16:48:50 CET 2012
On 25 janv. 2012, at 15:44, NoRulez wrote:
> Hello again,
>
> I've attached a small and simple example, which doesn't work.
>
> Maybe someone could help
>
> Thanks in advance
> Best Regards
>
> <DragDropExample.rar>_______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
Hello,
Tested with mingw 4.4.0 as well as MSVC2008.
Indeed, your example won't work as it is. You need to accept the proposed action (event->acceptProposedAction()) in dragEnterEvent and dragMoveEvent and just accept the event (event->accept()) in dragLeaveEvent.
In dropEvent, you have to do your stuff and again acceptProposedAction().
Hope it helps
Samuel
More information about the Interest
mailing list