[PyKDE] QTextDrag::decode

Pete Ware ware at cis.ohio-state.edu
Mon Apr 3 18:49:59 BST 2000


QTextDrag::decode () takes two arguments, the second is a Qstring &.
To get that to work with PyQt, I did:

        x = qt.QString()
        qt.QTextDrag.decode (qt.QApplication.clipboard().data(), x)

I guess what I expected was for the returned QString to be returned as
part of a tuple.

Is that a reasonable expectation?  In general, how should modified
parameters that are pass by reference be dealt with?

--pete




More information about the PyQt mailing list