Details
Description
from PySide6.QtGui import QGuiApplication, QPixmap from PySide6.QtCore import QBuffer app = QGuiApplication([]) pm = QPixmap(100, 100) b = QBuffer() pm.save(b, b'png')
raises an
Traceback (most recent call last): File "scripy.py", line 7, in <module> pm.save(b, b'png') ValueError: 'PySide6.QtGui.QPixmap.save' called with wrong argument values: PySide6.QtGui.QPixmap.save(<PySide6.QtCore.QBuffer(0x564b90818ef0) at 0x564b90819190>, b'png') Found signature: PySide6.QtGui.QPixmap.save(PySide6.QtCore.QIODevice, Union[bytes, NoneType] = None, int = -1)
Note that QBuffer is a QIODevice.
The same error is also raised in PySide2
Attachments
For Gerrit Dashboard: PYSIDE-1968 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
416793,5 | signature module: QPixMap.save should use str instead of bytes | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
416898,2 | signature module: QPixMap.save should use str instead of bytes | 6.3 | pyside/pyside-setup | Status: MERGED | +2 | 0 |