title: dynamically change label text QML
body: <p>This is the silliest thing to do in any language but I'm stuck on how to do it in QML.</p>
  
  <p>How to change the text value of a Label in QML? What am I missing..</p>
  
  <p>My code is the following:</p>
  
  <pre><code>Container {
    objectName: "formContainer"
    id: formContainer
  
    property alias text1: labelTest.text
  
    onCreationCompleted: {
        Qt.labelTest = labelTest;
        Qt.text1 = formContainer.text1;
    }
  
    Label {
        id: labelTest
        text: "test"
    }
  
    TextField {
        id: textFieldPass
        onFocusedChanged: {
               if (focused) {
                       Qt.myFunction();
               }
        }
     }
  
      function myFunction(){
         //Enter successfuly to the function
         console.log("Qt.labelTest.text:" + Qt.labelTest.text);  //Output: undefined
         Qt.labelTest.text = "Y U NO change!";  //Does nothing
         Qt.text1 = "Y U NO change!";           //Does nothing  
      }
   }
  </code></pre>
  
  <p>I'm not sure why is not working. Even with an alias property the text refuses to change.
  I will appreciate any help.</p>
  
  <p>Thanks and regards.</p>