Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

How do I pass QML function from QML to C++ and than back to QML ?

$
0
0
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?

Viewing all articles
Browse latest Browse all 4972

Trending Articles