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

[SOLVED]Accessing QML component property dynamically

$
0
0
Hi, How can we access properties of multiple qml components in a loop i.e I have a custom components “box1” “box2” “box3”…..“box30” this box has a property named “txtLabel” to store text in it. Now i have to find out which box has empty “txtLabel” i want to do it in a for loop like for(var i=1; i<=30;i++) { console.log((box+“i”).txtLabel) } Please help me in achieving above computing. Thanq.

Viewing all articles
Browse latest Browse all 4972

Trending Articles