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

Setting Layout.fillWidth from C++

$
0
0
Please tell me there is a better solution than this:  /* in GenericNew.qml */             onChildrenChanged: {                 for(var ii = 0; ii < children.length; ++ii) {                     if(children[ii].objectName.search("attr-")>=0) {                         console.log(children[ii])                         children[ii].Layout.fillWidth = true                     }                 }             }

Viewing all articles
Browse latest Browse all 4972

Trending Articles