10000 a nodestyle json transform problem · Issue #459 · paceholder/nodeeditor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
a nodestyle json transform problem #459
Open
@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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0