Last active
January 23, 2017 09:29
-
-
Save Pi03k/1e8f9b25006e0623040d4cdbc5ceeef7 to your computer and use it in GitHub Desktop.
qsortfilterproxymodel example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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