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 -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -