![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtCore More...
#include <qrangemodel.h>
\inmodule QtCore
The ItemAccess template provides a customization point to control how QRangeModel accesses role data of individual items.
ItemAccess<T> is a struct template where T specifies the item type. Specialize this template for the type used in your data structure, and implement {readRole()} and (optionally since 6.12) {writeRole()} members to access the role-specific data of your type.
Optionally [since 6.12], a {flags()} implementation can return a combination of Qt::ItemFlags:
A specialization of this type will take precedence over any predefined behavior. Do not specialize this template for types you do not own. Types for which ItemAccess is specialized with a {readRole} implementation are implicitly interpreted as \l{RowCategory}{multi-role items}.
Definition at line 41 of file qrangemodel.h.