If you aren't forced to use QTableView, you can use QTableWidget, it's straightforward
Qt Code:
//use this to add any widget to any cell in the table: // and this to get a pointer to this added widget:To copy to clipboard, switch view to plain text mode
Bookmarks