Sorted, I needed this:

Qt Code:
  1. print data.data().toString()
  2.  
  3. instead of this:
  4.  
  5. print data.row()
To copy to clipboard, switch view to plain text mode