Skip to content

Instantly share code, notes, and snippets.

@Pi03k
Last active January 23, 2017 09:29
Show Gist options
  • Save Pi03k/1e8f9b25006e0623040d4cdbc5ceeef7 to your computer and use it in GitHub Desktop.
Save Pi03k/1e8f9b25006e0623040d4cdbc5ceeef7 to your computer and use it in GitHub Desktop.
qsortfilterproxymodel example
sorted = new QSortFilterProxyModel(this);
sorted->setSourceModel(this);
sorted->setSortRole(getSortRole());
sorted->setSortCaseSensitivity(Qt::CaseInsensitive);
sorted->setDynamicSortFilter(true);
sorted->sort(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment