title: how can i set text property of 'Text' QML Component in other qml file?
body: <p>This is my Box.qml<br>
  I want to use this Box as customized QML Component.</p>
  
  <pre><code> import QtQuick 2.5
        Rectangle{
              id: sample
              width: 100
              height: 35
              border.color: "Black"
              color: "#778899"
              Text{
                  font.pointSize: 10
                  font.bold: true
                  anchors.centerIn: parent
             }
        }
  </code></pre>
  
  <p>This is my main.qml </p>
  
  <pre><code> import QtQuick 2.5
   import QtQuick.Window 2.2
   Window {
     visible: true
     width: 640
     height: 480
     title: qsTr("Repeater")
     Box{
         text: "Number"
     }
  }
  </code></pre>
  
  <p>But this is not working
  I am getting Following Error</p>
  
  <pre><code>qrc:/main.qml:11 Cannot assign to non-existent property "text"
  </code></pre>