|  | Home · Overviews · Examples

# QPersistentModelIndex Class Reference
[com.trolltech.qt.core module]

The `QPersistentModelIndex` class is used to locate data in a data model. More...

## Detailed Description

The `QPersistentModelIndex` class is used to locate data in a data model.

A `QPersistentModelIndex` is a model index that can be stored by an application, and later used to access information in a model. Unlike the QModelIndex class, it is safe to store a `QPersistentModelIndex` since the model will ensure that references to items will continue to be valid as long as they can be accessed by the model.

It is good practice to check that persistent model indexes are valid before using them.

See also Model/View Programming, `QModelIndex`, and `QAbstractItemModel`.