Skip to content Skip to sidebar Skip to footer

Qmetaobject::invokemethod Doesn't Find Methods With Parameters

This is a follow up of QMetaObject::invokeMethod doesn't find the method. Invoking a method without paramters works. But extending the previous question to methods with parameters

Solution 1:

For anybody still interested in this:

As of version 1.2.4, PySide is buggy in that it doesn't wrap the Q_ARG and Q_RETURN_ARG macros. Instead, it unwisely wraps the QGenericArgument and QGenericReturnArgument classes, which are internal helper classes and not meant to be instanciated directly. As a result of this, invoking slots with arguments invariably results in a segmentation fault.

By comparison, PyQt does wrap the macros rather than the classes, and does not suffer from the same problems.

Post a Comment for "Qmetaobject::invokemethod Doesn't Find Methods With Parameters"