Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

src_qt3support_sql_q3sqlselectcursor.cpp

//! [0]
...
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();
...
//! [0]

Generated by  Doxygen 1.6.0   Back to index