[PyQt] Drag to system

Hans-Peter Jansen hpj at urpla.net
Wed Sep 8 14:50:54 BST 2010


On Wednesday 08 September 2010, 15:05:21 Hugo Léveillé wrote:
> I have made a event to get the path of a file dragged into my pyqt app
> with this:
>
> path = event.mimeData().urls()
>
> But I would like to make to exact opposite ( to drag an item of my app
> into another app that expect a file drop)
>
> I looked in the doc on how I could set an URL to my listWidgetItem but
> didn't find anything. So is this possible ?

Did you read the Drag and Drop overview from the Qt documentation?

Pete




More information about the PyQt mailing list