QtModelsToolkit QML Module

QtModelsToolkit is a set of proxy models and other qt models-related utilities.

Proxy models

ConcatModel

Proxy model concatenating vertically multiple source models

GroupingModel

Proxy model grouping rows into submodels by value of given role

LeftJoinModel

Proxy model joining two models in a SQL LEFT JOIN fasion

MovableModel

Proxy model allowing freely reorder rows without modifying the source model

ObjectProxyModel

Proxy model using QML delegate to transform source model

RolesRenamingModel

Simple proxy allowing to rename roles according to a provided mapping

WritableProxyModel

Proxy allowing editing and removing entries from the source model

Proxy models - associated types

RoleRename

Defines name mapping for a single role within RolesRenamingModel

SourceModel

Wraps arbitrary QAbstractItemModel to be concatenated with other models within a ConcatModel

Aggregators

Aggregator

Common interface for all aggregators

FunctionAggregator

Aggregator calculating value using provided function

SingleRoleAggregator

Common interface for all aggregators operating on a single role

SumAggregator

Single role aggregator calculating sum of values for a given role

Utilities

ModelCount

Attached property exposing model's row count

ModelEntry

Utility allowing handy binding to a single row from a model

ModelQuery

Set of methods for querying QAbstractItemModel-based models