Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
6.8.0, 6.9.0
-
None
-
Windows 10
PySide6 6.8.0 or 6.9.0 from PyPI
Description
Signals and slots may use PyObject (object in Python) or it's subclasses as argument/return types. However, QtCore.Q_ARG cannot accept these types, and so these slots cannot be called using QtCore.QMetaObject.invokeMethod.
I tried a few different options, but none work:
# RuntimeError: qArgDataFromPyType: Unable to find a QMetaType for "object". QtCore.QMetaObject.invokeMethod(obj, "slotObject", QtCore.Q_ARG(object, arg)) # QMetaObject::invokeMethod: No such method Obj::slotObject(PySide::PyObjectWrapper) # Candidates are: # slotObject(PyObject) QtCore.QMetaObject.invokeMethod(obj, "slotObject", QtCore.Q_ARG("PyObject", arg)) # RuntimeError: qArgDataFromPyType: Unable to find a QMetaType for "PyObject*". QtCore.QMetaObject.invokeMethod(obj, "slotObject", QtCore.Q_ARG("PyObject*", arg))