Display records of Database in tableview in QML

I tried tableview for displaying records of database but Instead of value it is displaying object

ApplicationWindow {
    id: root
    width: 600; height: 800
      ListView{
        id: mListViewId
        anchors.fill: parent
//        header: "EmployeeName"
        model: dm.employeedetailslist
        delegate: delegateId 
}
Component{
        id: delegateId
            TableViewColumn {
                  role: id
                  title: "Title"
                 width: 500
           }
            TableViewColumn {
                role: name
               title: "Employee Name"
                width: 500
           }
}
}

Instead of value , I am getting object

0 Answers