Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |
The Q3SqlSelectCursor class provides browsing of general SQL SELECT statements. More...
#include <Q3SqlSelectCursor>
This class is part of the Qt 3 support library. It is provided to keep old source code working. We strongly advise against using it in new code. See Porting to Qt 4 for more information.
Note to Qt Desktop Light Edition users: This class is only available in the Qt Desktop Edition.
Inherits Q3SqlCursor.
The Q3SqlSelectCursor class provides browsing of general SQL SELECT statements.
Q3SqlSelectCursor is a convenience class that makes it possible to display result sets from general SQL SELECT statements in data-aware Qt widgets. Q3SqlSelectCursor is read-only and does not support INSERT, UPDATE or DELETE operations.
Pass the query in at construction time, or use the Q3SqlSelectCursor::exec() function.
Example:
... Q3SqlSelectCursor* cur = new Q3SqlSelectCursor("SELECT id, firstname, lastname FROM author"); Q3DataTable* table = new Q3DataTable(this); table->setSqlCursor(cur, true, true); table->refresh(); ... cur->exec("SELECT * FROM books"); table->refresh(); ...
Constructs a read only cursor on database db using the query query.
Constructs a copy of other
Destroys the object and frees any allocated resources
Copyright © 2005 Trolltech | Trademarks | Qt 4.1.0 |