<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- modules.qdoc --> <head> <title>Qt 4.6: QtSql Module</title> <link rel="prev" href="qtscript.html" /> <link rel="contents" href="modules.html" /> <link rel="next" href="qtsvg.html" /> <link href="classic.css" rel="stylesheet" type="text/css" /> </head> <body> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td> <td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="functions.html"><font color="#004faf">All Functions</font></a> · <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><p> [Previous: <a href="qtscript.html">QtScript Module</a>] [<a href="modules.html">All Qt Modules</a>] [Next: <a href="qtsvg.html">QtSvg Module</a>] </p> <h1 class="title">QtSql Module<br /><span class="subtitle"></span> </h1> <h2>Namespaces</h2> <p><table width="100%" class="annotated" cellpadding="2" cellspacing="1" border="0"> <tr valign="top" class="odd"><th><a href="qsql.html">QSql</a></th><td>Contains miscellaneous identifiers used throughout the Qt SQL library</td></tr> </table></p> <h2>Classes</h2> <p><table width="100%" class="annotated" cellpadding="2" cellspacing="1" border="0"> <tr valign="top" class="odd"><th><a href="qsqldatabase.html">QSqlDatabase</a></th><td>Represents a connection to a database</td></tr> <tr valign="top" class="even"><th><a href="qsqldriver.html">QSqlDriver</a></th><td>Abstract base class for accessing specific SQL databases</td></tr> <tr valign="top" class="odd"><th><a href="qsqldrivercreator.html">QSqlDriverCreator</a></th><td>Template class that provides a SQL driver factory for a specific driver type</td></tr> <tr valign="top" class="even"><th><a href="qsqldrivercreatorbase.html">QSqlDriverCreatorBase</a></th><td>The base class for SQL driver factories</td></tr> <tr valign="top" class="odd"><th><a href="qsqldriverplugin.html">QSqlDriverPlugin</a></th><td>Abstract base for custom QSqlDriver plugins</td></tr> <tr valign="top" class="even"><th><a href="qsqlerror.html">QSqlError</a></th><td>SQL database error information</td></tr> <tr valign="top" class="odd"><th><a href="qsqlfield.html">QSqlField</a></th><td>Manipulates the fields in SQL database tables and views</td></tr> <tr valign="top" class="even"><th><a href="qsqlindex.html">QSqlIndex</a></th><td>Functions to manipulate and describe database indexes</td></tr> <tr valign="top" class="odd"><th><a href="qsqlquery.html">QSqlQuery</a></th><td>Means of executing and manipulating SQL statements</td></tr> <tr valign="top" class="even"><th><a href="qsqlquerymodel.html">QSqlQueryModel</a></th><td>Read-only data model for SQL result sets</td></tr> <tr valign="top" class="odd"><th><a href="qsqlrecord.html">QSqlRecord</a></th><td>Encapsulates a database record</td></tr> <tr valign="top" class="even"><th><a href="qsqlrelation.html">QSqlRelation</a></th><td>Stores information about an SQL foreign key</td></tr> <tr valign="top" class="odd"><th><a href="qsqlrelationaldelegate.html">QSqlRelationalDelegate</a></th><td>Delegate that is used to display and edit data from a QSqlRelationalTableModel</td></tr> <tr valign="top" class="even"><th><a href="qsqlrelationaltablemodel.html">QSqlRelationalTableModel</a></th><td>Editable data model for a single database table, with foreign key support</td></tr> <tr valign="top" class="odd"><th><a href="qsqlresult.html">QSqlResult</a></th><td>Abstract interface for accessing data from specific SQL databases</td></tr> <tr valign="top" class="even"><th><a href="qsqltablemodel.html">QSqlTableModel</a></th><td>Editable data model for a single database table</td></tr> </table></p> <p>To include the definitions of the module's classes, use the following directive:</p> <pre> #include <QtSql></pre> <p>To link against the module, add this line to your <a href="qmake-manual.html#qmake">qmake</a> <tt>.pro</tt> file:</p> <pre> QT += sql</pre> <p>The QtSql module is part of the <a href="full-framework-edition-classes.html">Qt Full Framework Edition</a> and the <a href="opensourceedition.html">Open Source Versions of Qt</a>.</p> <p>See the <a href="sql-programming.html">SQL Programming</a> guide for information about using this module in your applications.</p> <p> [Previous: <a href="qtscript.html">QtScript Module</a>] [<a href="modules.html">All Qt Modules</a>] [Next: <a href="qtsvg.html">QtSvg Module</a>] </p> <p /><address><hr /><div align="center"> <table width="100%" cellspacing="0" border="0"><tr class="address"> <td width="40%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td> <td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td> <td width="40%" align="right"><div align="right">Qt 4.6.3</div></td> </tr></table></div></address></body> </html>