Skip to content

a nodestyle json transform problem #459

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions