setSortRole() is a method of QStandardItemModel, not of any of the table view classes.
ALso, since QTableWidget is derived from QTableView, QTableWidget IS a QTableView, and you wouldn't need to switch between classes.
setSortRole() is a method of QStandardItemModel, not of any of the table view classes.
ALso, since QTableWidget is derived from QTableView, QTableWidget IS a QTableView, and you wouldn't need to switch between classes.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks