Hi,
You can have a look at QQmlExpression documentation page [qt-project.org]. There is a little code snippet which loads a qml file and evaluates an expression in the context of that qml file. You can then change “width * 2” example expression to your desired expression or function call and change the context to suit your needs.
If the doc page is not enough, can you specify which part you don’t understand?
↧