[PyQt] PyQt 4.6 QClipboard bug?

Doug Bell dougb at bellz.org
Fri Oct 9 02:11:45 BST 2009


Hi,

In previous PyQt versions,  the QClipboard.text() method accepted a
Python string as an argument:

   QtGui.QApplication.clipboard().text('xml')

With PyQt 4.6, this throws an exception:

   TypeError: argument 1 of QClipboard.text() has an invalid type

But it seems to work OK with a QString as an argument:

   QtGui.QApplication.clipboard().text(QtCore.QString('xml'))

Is this a bug in 4.6?

I'm running Debian Sid with PyQt 4.6, Python 2.5.4, and Qt 4.5.3.

Thanks,
Doug


More information about the PyQt mailing list