[Qt-interest] Custom SQLite Driver
Neville Dastur
qt at dastur.me.uk
Sun Nov 29 13:03:16 CET 2009
I am writing a custom SQLite driver to use the encryption routines from
wxSqlite. I have got the whole thing compiling and working by following
the docs on writing your own driver
(http://qt.nokia.com/doc/4.5/qsqldatabase.html#addDatabase-2) , but I am
having a problem including a new method.
To set a password on the database the ReKey function needs to be called.
I created a public method:
void QSQLiteDriver::ReKey(const QString & key)
When calling QSQLDatabase m_db->driver()->ReKey("test"); the function
ReKey can't be found.
and
QSQLiteDriver *driver = m_db->driver();
driver->ReKey("test");
results in an invalid conversion.
What is this the best way of adding new functionality to a QSQLDriver.
Thanks
More information about the Qt-interest-old
mailing list