[PyQt] Bug with QClipboard

Chris Kaynor ckaynor at zindagigames.com
Thu Apr 29 19:11:02 BST 2010

When using PyQt 4.7 with Python 2.6.2, it is impossible to use the
QClipboard class.

When attempting to instantiate an instance of the class, the error
"TypeError: PyQt4.QtGui.QClipboard cannot be instantiated or sub-classed" is

As the class cannot be instantiated, I tried to call the methods on the type
object (QClipboard.setText) and got the error "TypeError:
QClipboard.setText(QString, QClipboard.Mode mode=QClipboard.Clipboard):
first argument of unbound method must have type 'QClipboard'"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100429/0feaa9a5/attachment.html>

More information about the PyQt mailing list