Skip to content

Don't use eval #1

@Siecje

Description

@Siecje

This is from @thebootroo in the QtMob slack.

instead of eval, just create some C++ component, use QQmlScriptString to pass code to it, and then execute it with QQmlExpression by passing the QQmlContext of your choice (either engine's root context, or object-specific sub context, or some dynamically created sandbox-like context)

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