title: QML connect signal to function
body: <p>I was getting my self familiar with QML in QT5. So i was trying to make the code from the follwing video: <a href="https://www.youtube.com/watch?v=GkzncJ71mm0" rel="nofollow noreferrer">video</a> </p>
  
  <p>In this video the code:<code>send.connect(target.receive());</code> is used. But This part does not work. I am getting the error: </p>
  
  <blockquote>
    <p>qrc:/Receiver.qml:8: Error: Cannot assign [undefined] to QString</p>
  </blockquote>
  
  <p>Is this method deprecated or am i doing something wrong?</p>
  
  <p><strong>main.qml</strong></p>
  
  <pre><code>Window {
  visible: true
  width: 640
  height: 480
  title: qsTr("Jurassic World")
  
  Background {
      id: background
      anchors.fill: parent
      target: sender
  
      Sender {
          id: sender
          y: 145
          displayText: "Sender"
          anchors.verticalCenter: parent.verticalCenter
          anchors.left: parent.left
          anchors.leftMargin: 50
          target: receiver
      }
  
      Receiver {
          id: receiver
          x: 376
          y: 158
          displayText: "Receiver"
          anchors.verticalCenter: parent.verticalCenter
          anchors.right: parent.right
          anchors.rightMargin: 50
          width: sender.width
      }
  }
  }
  </code></pre>
  
  <p><strong>Receiver.qml</strong></p>
  
  <pre><code>Cirkel {
  id: receiveButton
  
  function receive(value)
  {
      displayText = value
      clicknotify.running = true
  }
  
  SequentialAnimation on buttonColor
  {
      id: clicknotify
      running: false
  
      ColorAnimation {
          from: "#afc4cb"
          to: "red"
          duration: 200
      }
  
      ColorAnimation {
          from: "red"
          to: "#afc4cb"
          duration: 200
      }
  }
  }
  </code></pre>
  
  <p><strong>Sender.qml</strong></p>
  
  <pre><code>Cirkel {
  id: sendButton
  
  property int counter: 0
  property Receiver target: null
  
  signal send(string value)
  
  onTargetChanged: {
      send.connect(target.receive());
  }
  
  MouseArea {
      anchors.fill: parent
  
      onClicked: {
          counter++
          parent.send(counter)
          displayText = counter
      }
  
      onPressed: parent.buttonColor = "green"
      onReleased: parent.buttonColor = "#afc4cb"
  }
  }
  </code></pre>
  
  <p><strong>Question:</strong>
  How can i link a signal from one qml to a other qml function? </p>