Hi, I read the link

http://qt-project.org/doc/qt-5.1/qtq...mlfromcpp.html

and the last example on page seem to me the right way to send var json object via signal argument from qml, instead QVariant I used QvariantMap but i get massage:
No such signal QQuickRectangle_QML_45::btnSaveClicked(QVariantMap )

and is this the right way to cast from QvariantMap to QJsonObject?


Qt Code:
  1. void Partneri::btnSaveClicked(const QVariantMap& v)
  2. {
  3. QJsonObject jsp = QJsonObject::fromVariantMap(v);
  4.  
  5. qDebug() << jsp.keys();
  6.  
  7. }
To copy to clipboard, switch view to plain text mode 

Thanks.