Hi,
I have a compilation error when trying to use
Code:
QMetaObject::invokeMethod(pObject,"method",Qt::QueuedConnection,Q_ARG(QHash<QString,QVariant>,qHashParams));
Is there any solution or maybe there is another way to do this?
Thanks,
Printable View
Hi,
I have a compilation error when trying to use
Code:
QMetaObject::invokeMethod(pObject,"method",Qt::QueuedConnection,Q_ARG(QHash<QString,QVariant>,qHashParams));
Is there any solution or maybe there is another way to do this?
Thanks,
Q_ARG is a macro, C++ preprocessor will parse it as if you had passed three arguments (note the additional colon ',' in the Q_ARG call between QString and QVariant). It should work with a typedef.
Which in this case even exists already: http://qt-project.org/doc/qt-5/qvari...ntHash-typedef
Cheers,
_