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:
void Partneri::btnSaveClicked(const QVariantMap& v) { QJsonObject jsp = QJsonObject::fromVariantMap(v); qDebug() << jsp.keys(); }To copy to clipboard, switch view to plain text mode
Thanks.
Bookmarks