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