Added by Mark O'Donovan over 7 years ago
Have you considered adding a VisibleRole or RowVisibleRole to Wt::ItemDataRole ?
The model should return a boolean indicating if the row should be visible or filtered out at the time of the call.
I am doing such a role in my own applications for hiding model rows in my menus
e.g. if an advanced-mode is enabled then extra options (rows) appear in my menus (models).
I am using my own BooleanFilterProxy class to check the visible role for each row.
I can do a pull request if you think the idea is viable?