The QSqlIndex class provides functions to manipulate and describe QSqlCursor and QSqlDatabase indexes.
.PP
This class is used to describe and manipulate QSqlCursor and QSqlDatabase indexes. An index refers to a single table or view in a database. Information about the fields that comprise the index can be used to generate SQL statements, or to affect the behavior of a QSqlCursor object.
.PP
Normally, QSqlIndex objects are created by QSqlDatabase or QSqlCursor.
Returns an index based on the field descriptions in \fIl\fR and the cursor \fIcursor\fR. The field descriptions should be in the same format that toStringList() produces, for example, a surname field in the people table might be in one of these forms: "surname"," surname DESC" or "people.surname ASC".
.PP
See also toStringList().
.SH "bool QSqlIndex::isDescending ( int i ) const"
Returns TRUE if field \fIi\fR in the index is sorted in descending order; otherwise returns FALSE.
.SH "QString QSqlIndex::name () const"
Returns the name of the index.
.SH "QSqlIndex & QSqlIndex::operator= ( const QSqlIndex & other )"
Sets the name of the cursor that the index is associated with to \fIcursorName\fR.
.SH "void QSqlIndex::setDescending ( int i, bool desc )\fC [virtual]\fR"
If \fIdesc\fR is TRUE, field \fIi\fR is sorted in descending order. Otherwise, field \fIi\fR is sorted in ascending order (the default). If the field does not exist, nothing happens.
.SH "void QSqlIndex::setName ( const QString & name )\fC [virtual]\fR"