Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
5.11.0
-
None
-
Linux (Ubuntu 14.04, x64)
Python 3.6.2, x64
PySide2 5.11.1 (official release through pip)
Description
PySide2.QtCore.QPropertyAnimation requires the propertyName to be a byte type instead of the usual str. Easily fixable, but don't know if it was reported yet (or intended).
So:
>> QPropertyAnimation(foo, "windowOpacity")
TypeError: 'PySide2.QtCore.QPropertyAnimation' called with wrong argument types:
PySide2.QtCore.QPropertyAnimation(PySide2.QtCore.QObject, str)
Supported signatures:
PySide2.QtCore.QPropertyAnimation(PySide2.QtCore.QObject = nullptr)
PySide2.QtCore.QPropertyAnimation(PySide2.QtCore.QObject, PySide2.QtCore.QByteArray, PySide2.QtCore.QObject = nullptr)
But:
>> QPropertyAnimation(foo, b"windowOpacity")
Works fine.
Attachments
For Gerrit Dashboard: PYSIDE-801 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
238669,14 | Doc: Move literal code block to a separate file | 5.12 | qt/qtbase | Status: MERGED | -2 | 0 |