Fill the argument used on metacall for slot functions.
Fixes bug #456. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Neto <lauro.neto@openbossa.org>
This commit is contained in:
parent
60f46e4ea6
commit
50f915572d
1 changed files with 4 additions and 0 deletions
|
|
@ -358,6 +358,10 @@ static int PySide::callMethod(QObject* object, int id, void** args)
|
||||||
if (retval.isNull()) {
|
if (retval.isNull()) {
|
||||||
qWarning() << "Error calling slot" << methodName;
|
qWarning() << "Error calling slot" << methodName;
|
||||||
PyErr_Print();
|
PyErr_Print();
|
||||||
|
} else {
|
||||||
|
const char* returnType = method.typeName();
|
||||||
|
if (returnType && (strlen(returnType) > 0))
|
||||||
|
Shiboken::TypeResolver::get(returnType)->toCpp(retval, &args[0]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
qWarning() << "Dynamic slot" << methodName << "not found!";
|
qWarning() << "Dynamic slot" << methodName << "not found!";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue