title: How to capture a signal in QML?
body: <p>How I can send s signal from one qml component to another?</p>
  
  <p>Below is an example:</p>
  
  <pre><code>Rectangle {
      id: main
      width: 360; height: 360
      signal clicked()
  
      Text {
          id: testStr
          anchors.centerIn: parent
          text: "Hello World"
      }
      MouseArea {
          id: mouseArea
          anchors.fill: parent
          onClicked: { Qt.quit(); }
      }
  
      Component.onCompleted: clicked()
      onClicked:  testStr.text = "Demo"
  }
  </code></pre>
  
  <p>How do I capture the signal in other Component?</p>