javascript - Assigning an ID to a dynamically loaded Qt element -


How can I assign an ID to a dynamicly filled QT element, I tried it,

  var Component1 = Qt.createComponent ("Column.qml"); Var g = Component1.createObject (column1, {"anchors.left": column1 .right, "id" = xxxx});  

and

  g.id = xxxx;  

Both do not work whether there is any other way to set an ID to a dynamically loaded element.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

objective c - How to open front/back camera at the same time in iOS developing? -

xml - XMLStarlet - UTF-8 Nordic characters -