Advertisement
dtrq

setText

Feb 19th, 2018
2,596
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.19 KB | None | 0 0
  1. Text {
  2. anchors.fill: parent
  3. id: text1
  4. }
  5.  
  6. property alias txt1: text1.text
  7.  
  8. function setText(value1) {
  9. txt1 = value1 // doesn't change anything
  10. console.log(txt1) // returns good value
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement