what is the difference between this two functions when calling from qml:
typedef QVariantMap NewType;
Q_INVOKABLE QVariantMap testFunc();
Q_INVOKABLE NewType testFunc();
calling first function works but calling second function gives error.
how can i tell to qml engine that NewType is same as QVariantMap?
↧