Hello Friends,

I have this snippet here using in my program:

Qt Code:
  1. Rectangle {
  2. id:intelliRect
  3. width: 180; height: 300
  4. visible: false
  5. Component {
  6. id: memberDelegate
  7. Item {
  8. width: 180; height: 20
  9. Column {
  10. Text {
  11. text: '<b>' + modelData + '</b> '
  12. font.pointSize: 10
  13. font.family: "consolas"
  14. renderType: Text.NativeRendering;
  15. }
  16. }
  17. }
  18. }
  19.  
  20. ListView {
  21. id:intelliView
  22. anchors.fill: parent
  23. model: mymodel
  24. delegate: memberDelegate
  25. highlight: Rectangle { color: "lightsteelblue"; radius: 5 }
  26. focus: true
  27. Keys.onPressed: {
  28. if(event.key === 16777216) { //escape
  29. console.log('Escape')
  30. intelliRect.visible = false;
  31. edit.focus = true;
  32. }
  33. if(event.key === 16777220) { // enter
  34.  
  35.  
  36.  
  37. }
  38. }
To copy to clipboard, switch view to plain text mode 

My question is how can I access the current items text in the listview? There is currentItem, currentIndex etc but no text accessor..

Thanks