The Basic Sort/Filter Model example illustrates how to use QSortFilterProxyModel to perform basic sorting and filtering.

\titleBasic Sort/Filter Model Example \ingroup category User Interface Components \ingroup examples-itemviews

Screenshot of the Basic Sort/Filter Model Example

Example project @ code.qt.io