This page documents the models used in OnRabbleClient to represent and organize chat-related data. All models inherit from either QAbstractListModel or QSortFilterProxyModel and are designed to integrate directly with QML view components such as ListView
.
Qt’s model/view system is conceptually similar to MVC, but in this context, models do not encapsulate domain logic. Instead, they expose read/write access to structured collections of data for consumption by the UI. Filtering and sorting are handled separately through proxy models.
Note: While “model” in Qt refers to a view-bound data interface, it is not equivalent to a domain-level model in MVC or MVVM. Validation, persistence, and business logic are handled outside this model layer.
These models inherit from QAbstractListModel and provide unfiltered, observable lists of payloads.
These models inherit from QSortFilterProxyModel and are used to create filtered views of base models.