Skip to content

a nodestyle json transform problem #459

@Larry-Zheng

Description

@Larry-Zheng

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());

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions