From 50f915572de1f6f492f80b2cfc8c8fedd9cdae6f Mon Sep 17 00:00:00 2001 From: renatofilho Date: Wed, 3 Nov 2010 14:21:11 -0300 Subject: Fill the argument used on metacall for slot functions. Fixes bug #456. Reviewer: Luciano Wolf Lauro Neto --- libpyside/signalmanager.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libpyside') diff --git a/libpyside/signalmanager.cpp b/libpyside/signalmanager.cpp index 8a43ac491..8765136d3 100644 --- a/libpyside/signalmanager.cpp +++ b/libpyside/signalmanager.cpp @@ -358,6 +358,10 @@ static int PySide::callMethod(QObject* object, int id, void** args) if (retval.isNull()) { qWarning() << "Error calling slot" << methodName; PyErr_Print(); + } else { + const char* returnType = method.typeName(); + if (returnType && (strlen(returnType) > 0)) + Shiboken::TypeResolver::get(returnType)->toCpp(retval, &args[0]); } } else { qWarning() << "Dynamic slot" << methodName << "not found!"; -- cgit v1.2.3