I'm using the standard pattern to decorate a comboBox's list items with the values from a mapped column (mapping foreign key -> text column), but I cannot find a pattern that also allows one to use the QSortFilterProxyModel class to sort the secondary (mapped) column values (text, ascending order) in the comboBox.
Given a table like:
1 unassigned
2 assigned
3 active
4 suspended
5 failed
6 finished
1 unassigned
2 assigned
3 active
4 suspended
5 failed
6 finished
To copy to clipboard, switch view to plain text mode
I want the mapped comboBox to display:
active
assigned
failed
finished
suspended
unassigned
active
assigned
failed
finished
suspended
unassigned
To copy to clipboard, switch view to plain text mode
Bookmarks