title: C++ signal to QML slot in Qt
body: <p>I want to send a Signal from C++ to a Slot in my QML File.
  I already got it working without and primitive type parameters, although if I want to send a <code>QString</code> to my QML Slot I get an error whilst connecting.</p>
  
  <p>I connect in main.cpp </p>
  
  <pre><code>QObject *contentView = rootObject-&gt;findChild&lt;QObject*&gt;(QString("contentView"));
  QObject::connect(&amp;myObj,      SIGNAL(finishedGatheringDataForItem(QString)), 
                   contentView, SLOT(updateViewWithItem(QString)));
  </code></pre>
  
  <p>the relavant part of my qml File</p>
  
  <pre><code>Rectangle {
          objectName: "contentView"
          function updateViewWithItem(string) { console.log('got some Items'); }  // slot
  }
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Object::connect: No such slot QDeclarativeRectangle_QML_2::updateViewWithItem(QString)
  </code></pre>