title: In QT qml Tree-view how to get child items as text from treeview using its index
body: <pre><code>TreeView {
        anchors.fill: parent
        model: theModel
        onCurrentIndexChanged: console.log("current index: " + currentIndex+ " current row: " + currentIndex.row)
        itemDelegate: Rectangle {
                   color: ( styleData.row % 2 == 0 ) ? "white" : "lightblue"
                   height: 40
  
                   Text {
                       anchors.verticalCenter: parent.verticalCenter
                       text: styleData.value === undefined ? "" : styleData.value // The branches don't have a description_role so styleData.value will be undefined
                   }
               }
  
        TableViewColumn {
  
            role: "name_role"
            title: "Database name"
  
        }
        onClicked: {
               console.log("clicked", index)
        }
  </code></pre>
  
  <p>this is my treeview code.it will show database names as parent and table names as the child. I need to get the child name when I click on the child area.
  that's all I need.</p>
  
  <p>for eg:</p>
  
  <pre><code>database_name
     |____table_one
     |____table_two
  </code></pre>
  
  <p>when i click on 'table_one' i need to get the table_one as a text/string</p>
  
  <p>this is my application I need to get the child items names as a text from this treeview</p>
  
  <p><img src="https://i.stack.imgur.com/d5ndU.jpg" alt=""></p>