From d796c9dd933ab96ec83b9a634feedd5d32e1ba3f Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 8 Nov 2011 12:31:36 -0600 Subject: Test conversion to TQt3 from Qt3 8c6fc1f8e35fd264dd01c582ca5e7549b32ab731 --- 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 000000000..10a25028c --- /dev/null +++ b/doc/html/qsqlselectcursor.html @@ -0,0 +1,93 @@ + + + + + +TQSqlSelectCursor Class + + + + + + + +
+ +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

TQSqlSelectCursor Class Reference
[sql module]

+ +

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

#include <qsqlselectcursor.h> +

Inherits TQSqlCursor. +

List of all member functions. +

Public Members

+ +

Detailed Description

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

+ +

TQSqlSelectCursor is a convenience class that makes it possible to +display result sets from general SQL SELECT statements in +data-aware TQt widgets. TQSqlSelectCursor is read-only and does not +support INSERT, UPDATE or DELETE operations. +

Pass the query in at construction time, or use the +TQSqlSelectCursor::exec() function. +

Example: +

+    ...
+    TQSqlSelectCursor* cur = new TQSqlSelectCursor( "SELECT id, firstname, lastname FROM author" );
+    TQDataTable* table = new TQDataTable( this );
+    table->setSqlCursor( cur, TRUE, TRUE );
+    table->refresh();
+    ...
+    cur->exec( "SELECT * FROM books" );
+    table->refresh();
+    ...
+    
+ +

See also Database Classes. + +


Member Function Documentation

+

TQSqlSelectCursor::TQSqlSelectCursor ( const TQString & query = TQString::null, TQSqlDatabase * db = 0 ) +

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

TQSqlSelectCursor::TQSqlSelectCursor ( const TQSqlSelectCursor & other ) +

Constructs a copy of other +

TQSqlSelectCursor::~TQSqlSelectCursor () +

Destroys the object and frees any allocated resources + +

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


+ +
Copyright © 2007 +TrolltechTrademarks +
TQt 3.3.8
+
+ -- cgit v1.2.1