Qt 6.11 is out! See what's new in the release
blog
QMetaMethod::invoke: Unable to handle unregistered datatype 'quintptr'
-
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'
falsequintptrwas 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 fineWhy it may be happening?
-
I got the solution. Enjoy and thumb up
https://stackoverflow.com/questions/14712583/using-uint16-t-and-char-with-qmetaobjectinvokemethod