QSqlIndex(3qt)
π QSqlIndex β the qsqlindex.3qt glow-up π
okay bestie, welcome to the QSqlIndex(3qt) page β¨ this is a Qt 3 man page, so grab a strawberry drink π and let's get into it.
β¨ NAME β¨
QSqlIndex β functions to manipulate and describe QSqlCursor and QSqlDatabase indexes. no cap, that's literally the whole vibe. π
πΈ SYNOPSIS πΈ
#include <qsqlindex.h>
it inherits QSqlRecord, so all that inherited energy is coming along for the ride π¦
π Public Members π
QSqlIndex ( const QString & cursorname = QString::null, const QString &
name = QString::null )
QSqlIndex ( const QSqlIndex & other )
~QSqlIndex ()
QSqlIndex & operator= ( const QSqlIndex & other )
virtual void setCursorName ( const QString & cursorName )
QString cursorName () const
virtual void setName ( const QString & name )
QString name () const
virtual void append ( const QSqlField & field )
virtual void append ( const QSqlField & field, bool desc )
bool isDescending ( int i ) const
virtual void setDescending ( int i, bool desc )
β Static Public Members β
QSqlIndex fromStringList ( const QStringList & l, const QSqlCursor *
cursor )
π DESCRIPTION π
the QSqlIndex class provides functions to manipulate and describe QSqlCursor and QSqlDatabase indexes. periodt.
so like, this class is the class for describing and manipulating QSqlCursor and QSqlDatabase indexes. an index refers to a single table or view in a database β one table, one view, that's the whole situation, no polyamory there π
and the info about the fields that make up the index? you can use that to generate SQL statements, or to affect the behavior of a QSqlCursor object. it's giving "the index knows things and you can absolutely use those things" π
normally, QSqlIndex objects are created by QSqlDatabase or QSqlCursor. like, you're not usually the one making them β they just show up, main character behavior honestly β¨
see also Database Classes. (the original said "See also", we're keeping it, it's iconic)
π MEMBER FUNCTION DOCUMENTATION π
QSqlIndex::QSqlIndex ( const QString & cursorname = QString::null, const QString & name = QString::null )
constructs an empty index using the cursor name cursorname and index name name. empty index, full potential, we love a blank canvas π
QSqlIndex::QSqlIndex ( const QSqlIndex & other )
constructs a copy of other. twin behavior, no notes π
QSqlIndex::~QSqlIndex ()
destroys the object and frees any allocated resources. she's done, she's resting, she ate and left no crumbs π
void QSqlIndex::append ( const QSqlField & field ) [virtual]
appends the field field to the list of indexed fields. the field is appended with an ascending sort order.
reimplemented from QSqlRecord. (so like, the parent class had a version, this one's the glow-up β¨)
void QSqlIndex::append ( const QSqlField & field, bool desc ) [virtual]
this is an overloaded member function, provided for convenience. it behaves essentially like the above function. lowkey the same, highkey convenient π«Ά
appends the field field to the list of indexed fields. the field is appended with an ascending sort order, unless desc is TRUE. so if you pass TRUE in that desc slot, it's not ascending anymore, iykyk π
QString QSqlIndex::cursorName () const
returns the name of the cursor which the index is associated with. it's the cursor's name, that's it, that's the whole function π
QSqlIndex QSqlIndex::fromStringList ( const QStringList & l, const QSqlCursor * cursor ) [static]
returns an index based on the field descriptions in l and the cursor cursor. 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".
see also toStringList(). π
bool QSqlIndex::isDescending ( int i ) const
returns TRUE if field i in the index is sorted in descending order; otherwise returns FALSE. vibe check on field i, basically π
QString QSqlIndex::name () const
returns the name of the index. that's her name, that's her whole identity π
QSqlIndex & QSqlIndex::operator= ( const QSqlIndex & other )
sets the index equal to other. copy-paste but make it official β¨
void QSqlIndex::setCursorName ( const QString & cursorName ) [virtual]
sets the name of the cursor that the index is associated with to cursorName. naming rights, but for cursors π¦
void QSqlIndex::setDescending ( int i, bool desc ) [virtual]
if desc is TRUE, field i is sorted in descending order. otherwise, field i is sorted in ascending order (the default). if the field does not exist, nothing happens. no error, no drama, just silence π«
void QSqlIndex::setName ( const QString & name ) [virtual]
sets the name of the index to name. giving the index its little name tag π·οΈ
π SEE ALSO π
π COPYRIGHT π
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.
π AUTHOR π
Generated automatically from the source code. (no human author, just vibes and a code generator π€β¨)
π BUGS π
if you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. good bug reports help us to help you. thank you. π«Ά (fr fr, good bug reports are the love language of open source)
the definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. this man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech.
β οΈ heads up bestie: this man page format is a convenience, not officially supported by Trolltech. the HTML docs are the definitive ones. do not come for this page when the HTML says something else, ok? π
if you find errors in this manual page, please report them to qt-bugs@trolltech.com. please include the name of the manual page (qsqlindex.3qt) and the Qt version (3.3.8). include both, or the report is incomplete, periodt π
and that's the page!! πΈ this one's from Trolltech AS, dated 2 February 2007, and it's the QSqlIndex(3qt) man page, Qt version 3.3.8. slay, go index something, mwah πβ¨π
π¦ where this page comes from
- fedora 43: qt3-devel-docs 3.3.8b-102.fc43 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- fedora 44: qt3-devel-docs 3.3.8b-103.fc44 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms