You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run it on lower version qt when I found a bug in NodeGraphicsObject::NodeGraphicsObject. QJsonObject nodeStyleJson = _graphModel.nodeData(_nodeId, NodeRole::Style).toJsonObject();
Actually, what nodeData return is a variant map, please construct the json object explicitly. auto nodeStyleJson = QJsonObject::fromVariantMap(_graphModel.nodeData(_nodeId, NodeRole::Style).toMap());
The text was updated successfully, but these errors were encountered:
I am trying to run it on lower version qt when I found a bug in NodeGraphicsObject::NodeGraphicsObject.
QJsonObject nodeStyleJson = _graphModel.nodeData(_nodeId, NodeRole::Style).toJsonObject();
Actually, what nodeData return is a variant map, please construct the json object explicitly.
auto nodeStyleJson = QJsonObject::fromVariantMap(_graphModel.nodeData(_nodeId, NodeRole::Style).toMap());
The text was updated successfully, but these errors were encountered: