[PyQt] PyQt5 bug in QPropertyAnimation on Windows

Florian Bruhin me at the-compiler.org
Fri Jul 31 23:17:02 BST 2015

* Trilarion <pyqt at twelvepm.de> [2015-07-31 23:35:09 +0200]:
> line 9, in <module>
> animation = QPropertyAnimation(pbar, "value")
> TypeError: arguments did not match any overloaded call:
> QPropertyAnimation(QObject parent=None): too many arguments
> QPropertyAnimation(QObject, QByteArray, QObject parent=None): argument 2 has
> unexpected type 'str'

The Qt constructor takes a QByteArray (not a QString), so you should
pass a bytes object, not a string.

In earlier versions, passing a string encodable as latin1 worked, but
this behaviour was deprecated in 5.4 and removed in 5.5, as documented



http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150801/944748b9/attachment.sig>

More information about the PyQt mailing list