Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
None
-
6.3
-
None
-
-
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
- is duplicated by
-
PYSIDE-1262 Q_ARG missing, invokeMethod doesn't work currently with arguments in PySide2.
- Closed
- relates to
-
PYSIDE-1253 Calling QMetaObject.invokeMethod with BlockingQueuedConnection freezes
- Closed
-
PYSIDE-2500 invokeMethod or QMetaMethod->invoke() not possible for more than 3 arguments
- Closed
- resulted in
-
PYSIDE-2121 REG->6.4.0-: QMetaObject.invokeMethod(BlockingQueuedConnection) causes deadlock
- Closed