Why using QVariantMap as a function parameter does not work in qml ?
QML and Qt Quick
2
Posts
1
Posters
1.5k
Views
1
Watching
-
wrote on 21 Nov 2012, 07:23 last edited by
basically I want something in C++ like
@class myclass : QObject {
...
Q_INVOKABLE void myfunction( QVariantMap param);
}@and call it in qml:
@myobject.myfunction({'a':'b'})@
However it doesn't work as I expected, there is no error reported, but I can't get myfunction called in C++ domain.
I am using Qt4.8.3 .
-
wrote on 21 Nov 2012, 10:27 last edited by
ok that is my own fault. After recompile my project, issue is gone.
1/2