Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions | ![]() |
The QPersistentModelIndex class is used to locate data in a data model. More...
#include <QPersistentModelIndex>
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 data will continue to be valid as long as that data exists within the model.
See also Model/View Programming, QModelIndex, and QAbstractItemModel.
Creates a new QPersistentModelIndex that is a copy of the model index in the given model.
Creates a new QPersistentModelIndex that is a copy of the other persistent model index.
Returns the column this persistent model index refers to.
Returns true if this persistent model index is valid; otherwise returns false.
Returns the row this persistent model index refers to.
Returns the Type of this persistent model index.
Cast operator that returns a const QModelIndex&.
Returns true if this persistent model index does not refer to the same location as the other model index; otherwise returns false.
Returns true if this persistent model index is smaller than the other persistent model index; otherwise false.
Sets the persistent model index to refer to the same model index as the other persistent model index.
Returns true if this persistent model index refers to the same location as the other model index; otherwise returns false.
Copyright © 2004 Trolltech. | Trademarks | Qt 4.0.0-tp1 |