10-16-2012 11:18 AM - edited 10-16-2012 11:19 AM
I have QVariant instance which I get from QML definded JS function by QMetaObject::invokeMethod.
It QVariant instance contains QObject pointer.
How can I get this pointer from QVariant object?
This method considered in SO doesn't works and fails with error (no matching function call).
10-16-2012 11:25 AM - edited 10-16-2012 11:27 AM
I already found solution, just use:
You also can use any another type instead of QObject* which you are expected.