![]() | Home · All Classes · Modules |
The QWebDatabase class provides access to HTML 5 databases created with JavaScript. More...
The QWebDatabase class provides access to HTML 5 databases created with JavaScript.
The upcoming HTML 5 standard includes support for SQL databases that web sites can create and access on a local computer through JavaScript. QWebDatabase is the C++ interface to these databases.
For more information refer to the HTML 5 Draft Standard.
See also QWebSecurityOrigin.
Constructs a web database from other.
Returns the name of the database as seen by the user.
Returns the expected size of the database in bytes as defined by the web author.
Returns the file name of the web database.
The name can be used to access the database through the QtSql database module, for example:
QWebDatabase webdb = ... QSqlDatabase sqldb = QSqlDatabase.addDatabase("QSQLITE", "myconnection"); sqldb.setDatabaseName(webdb.fileName()); if (sqldb.open()) { QStringList tables = sqldb.tables(); ... }
Note: Concurrent access to a database from multiple threads or processes is not very efficient because Sqlite is used as WebKit's database backend.
Returns the name of the database.
Returns the databases's security origin.
Removes the database, db, from its security origin. All data stored in this database will be destroyed.
Returns the current size of the database in bytes.
PyQt 4.6.2 for X11 | Copyright © Riverbank Computing Ltd and Nokia 2009 | Qt 4.5.3 |