1. Implement a custom QSortFilterProxyModel to hide the duplicate items.
or
2. Create another QSqlTableModel and apply a SQL filter on it to select only unique items in the required column.
1. Implement a custom QSortFilterProxyModel to hide the duplicate items.
or
2. Create another QSqlTableModel and apply a SQL filter on it to select only unique items in the required column.
When you know how to do it then you may do it wrong.
When you don't know how to do it then it is not that you may do it wrong but you may not do it right.
Bookmarks