[PyKDE] QTextDrag problems

Phil Thompson phil at river-bank.demon.co.uk
Tue Aug 27 12:57:00 BST 2002


Green, Gregory P wrote:

> I am trying to decode the text in a QTextDrag object, received by a
> QListView.contentsDropEvent method. The c++ signature of the object is:
> 
> static bool decode(const QMimeSource*, QString&)
> 
> The second argument is intended to receive the decoded text. PyQt copies
> this signature exactly, so that a string needs to be passed, and a boolean
> is received. That doesn't allow retrieval of the string though.


Why doesn't it? The QString you pass is updated with the decoded string 
- or at least it should be. See dropsite.py in the examples directory.

Phil




More information about the PyQt mailing list