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
My QML file should look something like this Rectangle {     id: rect     width: 500     height: 500     color: "#654321"     Text {         text: Group1.SetA.myText         anchors.centerIn: parent     } } Somewhere in my C code I would like to do something like below to update the text RootContext->setContextProperty(“Group1.SetA.myText”, “ValueString”); OR myViewer->setProperty(“Group1.SetA.myText”, “ValueString”); Is that possible ? Can we use period/dot in qml property names? If not, is there any other way ?

Viewing all articles
Browse latest Browse all 4972

Trending Articles