Hello!
I am working with QTableView and its model is a subclass of QAbstractTableModel. I have to sort columns on the tableview. I do that by SQL queries (ORDER BY). So when sorting I refresh my model. When I click on the tableview headers there is sorting but there are also extra empty rows in the bottom of the tableview that cannot be selected by mouse click. When you click again on the headers these extra rows are disappearing one by one (with one new click one empty row disappears). What can I do to solve this problem? I have googled the issue but there are no results. Please, help me.
Bookmarks