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

QMetaObject.invokeMethod with arguments not possible

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 6.3
    • PySide
    • None
    • All
    • aae2f599e8 (pyside/pyside-setup/dev) aae2f599e8 (pyside/tqtc-pyside-setup/dev), e738f1a37 (dev)

    Description

      At the moment, it is not possible to use QMetaObject.invokeMethod with something that requires an argument, as `Q_ARG` and `Q_RETURN_ARG` macros aren't exposed to Python. `QGenericArgument` and `QGenericReturnArgument` should and cannot be used directly.

      Use case is invoking a method in a different thread, for example.

      Potential workaround until this is fixed: Using a singleshot QTimer with Qt.QueuedConnection.

      Attachments

        Issue Links

          For Gerrit Dashboard: PYSIDE-1898
          # Subject Branch Project Status CR V

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              strahlex Alexander Rössler
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: