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

Is there a way we can use a period/dot seperator in variable names in qml for setting property/context property

$
0
0
I don’t think you can do that, but there are many ways to set the value. You could use a global property and bind it to the text and then easily change it from c++ or you get the specific QML item from c++ which is not that easy I think. Depending on how often you need to do that the quick (and maybe dirty) way is to use the evaluate function of the QML engine, there you can run any valid QML code like Javascript evil function, just from c++.

Viewing all articles
Browse latest Browse all 4972

Trending Articles