[PyKDE] QPixmap.grabWidget() damages icons and QFilePreview doesn't work

Phil Thompson phil at riverbankcomputing.co.uk
Tue Feb 15 09:29:06 GMT 2005


> On Saturday 12 February 2005 11:37 pm, Hans-Peter Jansen wrote:
>> BTW, did you notice the decode problem in the dirview example.
>> Dropping an item somewhere always decodes as an empty list:
>>
>>             # currently used:
>>             lst = QStringList()
>>             QUriDrag.decodeLocalFiles(e, lst)
>>
>>             # similar as in dirview.cpp:
>>             lst = []
>>             QUriDrag.decode(e, lst)
>>
>> I already tried to keep references on the dragged items, but that
>> doesn't change the picture.
>>
>> Could you take another look into this? In return, I can offer an
>> adapted qdir example, which also uses dirview.

Replacing the call to QUriDrag.setUnicodeUris() with a call to
QUriDrag.setFileNames() seems to fix this.

Phil




More information about the PyQt mailing list