title: qml element id access from c++
body: <p>In c++ side I wrote this code</p>
  
  <pre><code>    :::::::::::::
      QMetaObject::invokeMethod(rootObject,"changeText",Q_ARG(QVariant,"txt1"),
  Q_ARG(QVariant,"hello"))
  </code></pre>
  
  <p>in qml side I wrote this</p>
  
  <pre><code>Text {
    id: txt1
    text: "hi"
  }
  
  function changeText(id,str){
          id.text=str
  }
  </code></pre>
  
  <p>changeText function works in qml side but it doesn't work when I call it from c++ side. I think Cpp side method sends "txt1" as QString so changeText function doesn't work. </p>
  
  <p>Can you tell me please how can I do this?</p>