
Originally Posted by
wysota
I'm having a bad evening.
Besides what was already written I could advise you to check the type of variant returned by dynamic call.
qDebug() << var->typeName();
QVariant var = obj->dynamicCall(...);
qDebug() << var->typeName();
To copy to clipboard, switch view to plain text mode
Dear Wysota the result of the
qDebug() << var->typeName();
qDebug() << var->typeName();
To copy to clipboard, switch view to plain text mode
is QByteArray but I don't know how to manage the data. It returns strange characters.
I also generated the *.cpp and *.h files with dumpcpp.
This is the prototype of the routine that give problems to me (from the generated .h):
/*
Method GetUserData
*/
inline QVariant GetUserData
(const QString
& CardID
);
/*
Method GetUserData
*/
inline QVariant GetUserData(const QString& CardID);
To copy to clipboard, switch view to plain text mode
and the member function implementation ( always in the *.h generated )
inline QVariant oTerminal
::GetUserData(const QString
& CardID
) {
void *_a[] = {(void*)&qax_result, (void*)&CardID};
return qax_result;
}
inline QVariant oTerminal::GetUserData(const QString& CardID)
{
QVariant qax_result;
void *_a[] = {(void*)&qax_result, (void*)&CardID};
qt_metacall(QMetaObject::InvokeMetaMethod, 71, _a);
return qax_result;
}
To copy to clipboard, switch view to plain text mode
I attached here a shot of the visual studio to see the returned value. I hope you can help me.
Regards
Bookmarks