QMetaMethod::invoke: Unable to handle unregistered datatype 'quintptr'
Solved
General and Desktop
-
I am calling the following code.
qRegisterMetaType<quintptr>();
qDebug() << QMetaObject::invokeMethod(&m_remoteSyncWorker, "getItem", Q_ARG(quintptr, 1));r'
And I am getting the error
QMetaMethod::invoke: Unable to handle unregistered datatype 'quintptr'
false
quintptr
was declared withQ_DECLARE_METATYPE(quintptr)
Such scheme works with defined by me data types like
QMetaObject::invokeMethod(&m_remoteSyncWorker, "addItem", Q_ARG(ItemData, data)); // it works fine
Why it may be happening?
-
I got the solution. Enjoy and thumb up
https://stackoverflow.com/questions/14712583/using-uint16-t-and-char-with-qmetaobjectinvokemethod