![]() |
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 {writeRole()} members to access the role- specific data of your type.
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 are implicitly interpreted as \l{RowCategory}{multi-role items}.
Definition at line 38 of file qrangemodel.h.