-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.10.0
-
None
https://doc.qt.io/qt-6/qml-qtqml-models-sortfilterproxymodel.html
The first snippet contains wrong syntax. The colons behind the sorter and filter instances are wrong.
ProcessModel { id: processModel } SortFilterProxyModel { id: sfpm model: processModel sorters: [ RoleSorter: { roleName: "user" priority: 0 }, RoleSorter: { roleName: "pid" priority: 1 } ] filters: [ FunctionFilter: { component RoleData: QtObject { property qreal cpuUsage } function filter(data: RoleData) : bool { return (data.cpuUsage > 90) } } ] }
For Gerrit Dashboard: QTBUG-141151 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
684205,1 | Docs: Correct the code snippet for the QML SFPM | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |