From bd0f3345a938b35ce6a12f6150373b0955b8dd12 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 10 Jul 2011 15:24:15 -0500 Subject: Add Qt3 development HEAD version --- doc/html/qsqlselectcursor.html | 93 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 doc/html/qsqlselectcursor.html (limited to 'doc/html/qsqlselectcursor.html') diff --git a/doc/html/qsqlselectcursor.html b/doc/html/qsqlselectcursor.html new file mode 100644 index 0000000..8e10e58 --- /dev/null +++ b/doc/html/qsqlselectcursor.html @@ -0,0 +1,93 @@ + + + + + +QSqlSelectCursor Class + + + + + + + +
+ +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

QSqlSelectCursor Class Reference
[sql module]

+ +

The QSqlSelectCursor class provides browsing of general SQL +SELECT statements. +More... +

#include <qsqlselectcursor.h> +

Inherits QSqlCursor. +

List of all member functions. +

Public Members

+ +

Detailed Description

+ + +The QSqlSelectCursor class provides browsing of general SQL +SELECT statements. +

+ +

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 = new QSqlSelectCursor( "SELECT id, firstname, lastname FROM author" );
+    QDataTable* table = new QDataTable( this );
+    table->setSqlCursor( cur, TRUE, TRUE );
+    table->refresh();
+    ...
+    cur->exec( "SELECT * FROM books" );
+    table->refresh();
+    ...
+    
+ +

See also Database Classes. + +


Member Function Documentation

+

QSqlSelectCursor::QSqlSelectCursor ( const QString & query = QString::null, QSqlDatabase * db = 0 ) +

+Constructs a read only cursor on database db using the query query. + +

QSqlSelectCursor::QSqlSelectCursor ( const QSqlSelectCursor & other ) +

Constructs a copy of other +

QSqlSelectCursor::~QSqlSelectCursor () +

Destroys the object and frees any allocated resources + +

+This file is part of the Qt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


+ +
Copyright © 2007 +TrolltechTrademarks +
Qt 3.3.8
+
+ -- cgit v1.2.3