Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to receive signals from a QTableView to sort by column?
jdent last edited by
I am venturing into SQL programming with Qt. I have the QTableView and the QSqlRelationalDelegate and the QSQLRelationalTableModel and they work nice! Yet, how can I make my table to react to a click int the header in order to sort by that column?
alex_malyu last edited by
QTableView* v = .....
v->setSortingEnabled( true );
QSqlTableModel implements sort(), so I believe that is it.