I am trying to allowing dropping images' icons into my app, from which
information about the image will be retrieved. I checked all MIME
formats of the icon drop and tried to
retrieve the associated data, but all of it was empty strings:

        def dragEnterEvent(self, event):
                for format in event.mimeData().formats():
                        data = event.mimeData().data(format)
                        stream = QDataStream(data, QIODevice.ReadOnly)
                        text = QString()
                        stream >> text
                        print text

The only thing I need is path to the file represented by this icon,
but I fail to get this. Could you point me, from where I can get it?

-- 
Filip Gruszczyński

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to