[Qt-interest] Drop problem

RZ rz at univie.ac.at
Wed Sep 2 23:57:25 CEST 2009


Just to add:

I added

setAcceptDrops(true);
viewport()->setAcceptDrops(true);

inside the c'tor of my QListWidget ... - effect stays the same

> Hi all,
> 
> I'm trying to drag an "item" from one QMainWindow inside an mdi 
> application to another mdi application. The target window only contains 
> a class derived from QListWidget in which I implemented
> 
> dragEnterEvent(QDragEnterEvent *e);
> and
> dropEvent(QDropEvent *e);
> 
> The problem:
> I always see the "drop not possible"-sign although my dragEnterEvent 
> gets called and in there i do
> e->acceptProposedAction();
> 
> But the dropEvent _never_ gets called.
> 
> It should be quite simple but I have no idea why it fails and - even 
> worse - how to debug who blocks my drop?!?
> 
> Any ideas welcome,
> 
> RZ



More information about the Qt-interest-old mailing list