Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How use QSortFilterProxyModel with Model in QML



  • Please share examples or references on this subject





  • I use it successfully in my editor's project management view, to filter projects based on user choices (e.g. stories only from specific year, or only stories having specific status):

    [url=https://gitorious.org/moe/moe/blobs/master/moeqt/sources/prjmgr/moeProjectDB.h]ProjectDB.h[/url]

    [url=https://gitorious.org/moe/moe/blobs/master/moeqt/sources/prjmgr/moeProjectDB.cpp]ProjectDB.cpp[/url]

    You might also look sources for [url=https://gitorious.org/moe/moe/trees/master/moeqt/sources/prjmgr]project manager view[/url] and [url=https://gitorious.org/moe/moe/trees/master/moeqt]whole Qt editor project[/url].


Log in to reply