pyqt  

[PyQt] Drag from listView to a lineEdit

Jake Richards
Fri, 09 May 2008 06:51:56 -0700

Hello:
  I've got a pretty simple listviewWidget with 1 column.  I'd like to be
able to drag items from the listView over to a qlineEdit and paste the text
that is in the column.  I've set up a dropEvent for my QLineEdit and it
appears to be triggered, but I don't know how to get the data from the
event.  The mime type is returning
"application/x-qabstractitemmodeldatalist" but I don't know how to convert
that into something useful.  Do I have to set up something on the
listViewWidget to set it's mime type?  Thanks!
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
  • [PyQt] Drag from listView to a lineEdit Jake Richards