Hi,

i want to be able to drag a file onto my QListWidget. Therefore I subclassed it into my QFileListWidget. In the designer I set the following:

[QWidget]
acceptDrops = true

[QAbstactItemView]

dragEnabled = true
dragDropMode = DragDrop

Qt Code:
  1. package org.rfs.qttestpackage;
  2. import com.trolltech.qt.gui.*;
  3.  
  4. public class QFileListWidget extends QListWidget{
  5.  
  6. public QFileListWidget(QWidget parent){
  7. super(parent);
  8. setAcceptDrops(true);
  9. }
  10.  
  11. protected void dropEvent(QDropEvent event) {
  12. System.out.println("DROPPED: " + event.toString());
  13. }
  14. }
To copy to clipboard, switch view to plain text mode 

Now, nothing happens when I drag ANYTHING onto this control. Could you please help with pointing out what I am doing wrong?

thanks
Ronny