Hello everyone,
I'm tring to sort my data filled in a QTableView. Data are the result of a query.
For that, I've proceed like below :
My problem is that for some columns, sorting works fine but for the other is not working.Qt Code:
modelAb ->setQuery(query, dbConnexion); while(modelAb->canFetchMore()) modelAb->fetchMore(); mSortFilterModel->setDynamicSortFilter(true); mSortFilterModel->setSourceModel(modelAb); tabAbonne->setModel(mSortFilterModel); tabAbonne->setSortingEnabled(true);To copy to clipboard, switch view to plain text mode
Can anyone help me to resolve this problem.
Best regards.
Bookmarks