Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

'this' pointer in QML

$
0
0
QML have parent for referencing parent element, but does it have this for referencing this element? For example (Button is an imaginary element that has ‘clicked’ signal and ‘color’ property): Item {   Row {     Repeater {       Button {           onClicked: {             setColor(this)           }       }     }   }   function setColor(o) {      o.color = "red";   } }

Viewing all articles
Browse latest Browse all 22112

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>