Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2024

`PySide` doesn't recognize `list` or `tuple` as a `Sequence`

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 6.3.1
    • PySide
    • None
    • Windows 10, x64-bit with PySide 6.3.1
      Linux with PySide 2
    • Windows

    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)
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            ahendry Adam Hendry
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes