title: Javascript blocks are not supported in a Qt Quick UI form
body: <p>I'm trying to do a very simple Qt Quick application.</p>
  
  <p>Qt Creator automatically creates a <code>MainForm.ui.qml</code> file, in which I put my UI components, such as a <code>TextField</code>.</p>
  
  <p>When the content of this <code>TextField</code> is changed, I want to call a invokable method of a C++ <code>QObject</code>.</p>
  
  <p>Here is what I did :</p>
  
  <pre><code>TextField {
      ...&lt;snip&gt;...
  
      onTextChanged: {
          var Result = myCppObj.doStuff(text)
          lblOutput.text = Result
      }
  }
  </code></pre>
  
  <p>When I start my application, it is working fine.</p>
  
  <p>But the <code>doStuff(text)</code> call is underlined in red, showing the following message :</p>
  
  <blockquote>
    <p>Javascript blocks are not supported in a Qt Quick UI form (M223).</p>
  </blockquote>
  
  <p>And I cannot edit my UI with the designer tool any more.</p>
  
  <p>Any idea why and how to solve this ?</p>