[maemo-developers] QtSql and Debian package probelm
From: Sascha Mäkelä sascha.makela at gmail.comDate: Fri Jun 11 11:59:33 EEST 2010
- Previous message: QtSql and Debian package probelm
- Next message: QtSql and Debian package probelm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hmm... it doesn't print anything in the console. I've also added this before the error: qDebug() << name << "Error!"; Strange... Thanks, Sascha On Fri, Jun 11, 2010 at 11:57, Sascha Mäkelä <sascha.makela at gmail.com>wrote: > > > On Fri, Jun 11, 2010 at 11:42, Daniil Ivanov <daniil.ivanov at gmail.com>wrote: > >> Try this? >> >> QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE"); >> QString name = QDir::homePath() + "/CurrencyConverter"; >> db.setDatabaseName(name); >> if (!db.open()) { >> qDebug() << name << db.lastError(); >> return false; >> } else { >> qDebug() << name << "Great success!"; >> return true; >> } >> >> Thanks, Daniil. >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20100611/ca907993/attachment.htm>
- Previous message: QtSql and Debian package probelm
- Next message: QtSql and Debian package probelm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]