Details
-
Bug
-
Resolution: Cannot Reproduce
-
Not Evaluated
-
None
-
6.3.1
-
None
-
Windows 10, x64-bit with PySide 6.3.1
Linux with PySide 2
Description
Please see this thread of VTK MR 9443.
This issue also affects `PySide2` on Linux systems and was seen in bug PYSIDE 2017.
It seems `PySide` does not recognize `list` or `tuple` as a `Sequence`, which is affecting multiple areas of the library.
// Some comments here
# Pass as tuple
gesture_event = QtWidgets.QGestureEvent((e,))
gives
TypeError: 'PySide6.QtWidgets.QGestureEvent.__init__' called with wrong argument types: PySide6.QtWidgets.QGestureEvent.__init__(tuple) Supported signatures: PySide6.QtWidgets.QGestureEvent.__init__(Sequence[PySide6.QtWidgets.QGesture])
and
# Pass as list
gesture_event = QtWidgets.QGestureEvent([e])
gives
TypeError: 'PySide6.QtWidgets.QGestureEvent.__init__' called with wrong argument types: PySide6.QtWidgets.QGestureEvent.__init__(list) Supported signatures: PySide6.QtWidgets.QGestureEvent.__init__(Sequence[PySide6.QtWidgets.QGesture])
QGestureEvent:: QGestureEvent(const QList<QGesture *> &gestures)