[Qt-interest] SQLite and create new database file
Bill KING
bill.king at trolltech.com
Mon Jan 19 01:47:24 CET 2009
Robert Hairgrove wrote:
> Constantin Makshin wrote:
>
>> QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
>> db.setDatabaseName(fileName);
>> db.open();
>>
>
> This didn't work ... there was no database file "fileName" created.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
It will, once you create a table, sqlite will create the database file
if it doesn't exist.
--
Bill King, Software Engineer
Qt Software, Nokia Pty Ltd
Brisbane Office
More information about the Qt-interest-old
mailing list