Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |
The QSqlSelectCursor class provides browsing of general SQL SELECT statements. More...
#include <qsqlselectcursor.h>
Inherits QSqlCursor.
QSqlSelectCursor is a convenience class that makes it possible to display result sets from general SQL SELECT statements in data-aware Qt widgets. QSqlSelectCursor is read-only and does not support INSERT, UPDATE or DELETE operations.
Pass the query in at construction time, or use the QSqlSelectCursor::exec() function.
Example:
... QSqlSelectCursor cur( "SELECT id, firstname, lastname FROM author" ); QDataTable table( this ); table.setSqlCursor( &cur, TRUE, FALSE ); table.refresh(); ... cur.exec( "SELECT * FROM books" ); table.refresh(); ...
See also Database Classes.
This file is part of the Qt toolkit. Copyright © 1995-2003 Trolltech. All Rights Reserved.
Copyright © 2003 Trolltech | Trademarks | Qt version 3.2.0b2
|