Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
doc_src_sql-driver_snippet.cpp File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

Go to the source code of this file.

Functions

query setForwardOnly (true)
 
query exec ("SELECT * FROM table")
 
 while (query.next())
 

Variables

QSqlQuery query
 [36]
 
QVariant v
 

Function Documentation

◆ exec()

query exec ( "SELECT * FROM table" )

◆ setForwardOnly()

query setForwardOnly ( true )

Referenced by QSqlQuery::exec(), QSqlQuery::prepare(), and qMakeStatement().

+ Here is the caller graph for this function:

◆ while()

while ( query. next())

Definition at line 8 of file doc_src_sql-driver_snippet.cpp.

References qstrcmp().

+ Here is the call graph for this function:

Variable Documentation

◆ query

[36]

Definition at line 4 of file doc_src_sql-driver_snippet.cpp.

◆ v

Definition at line 5 of file doc_src_sql-driver_snippet.cpp.