Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.0.0
-
None
Description
Due to this post in the forum I found that Qt6 kwargs are not respected in PySide6, for example:
Qt6
QPixmap QPixmap::scaled(int width, int height, Qt::AspectRatioMode aspectRatioMode = Qt::IgnoreAspectRatio, Qt::TransformationMode transformMode = Qt::FastTransformation) const
PySide6
help(QPixmap.scaled)
Output:
scaled(...) scaled(self, s: PySide6.QtCore.QSize, aspectMode: PySide6.QtCore.Qt.AspectRatioMode = PySide6.QtCore.Qt.AspectRatioMode.IgnoreAspectRatio, mode: PySide6.QtCore.Qt.TransformationMode = PySide6.QtCore.Qt.TransformationMode.FastTransformation) -> PySide6.QtGui.QPixmap scaled(self, w: int, h: int, aspectMode: PySide6.QtCore.Qt.AspectRatioMode = PySide6.QtCore.Qt.AspectRatioMode.IgnoreAspectRatio, mode: PySide6.QtCore.Qt.TransformationMode = PySide6.QtCore.Qt.TransformationMode.FastTransformation) -> PySide6.QtGui.QPixmap
As you can see, the Qt6 kwargs are aspectRatioMode and transformMode but in PySide6 they are changed to aspectMode and mode.