[maemo-developers] QtSql and Debian package probelm
From: Sascha Mäkelä sascha.makela at gmail.comDate: Fri Jun 11 13:22:40 EEST 2010
- Previous message: QtSql and Debian package probelm
- Next message: QT map widget
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ehm... Everything is working now. The last suggestion worked just fine with database and all. I had made just... ehr... Let us just say a very idiotic mistake in my packing and let's leave it at that. :D A very big thank you for everyone that helped me with this issue, Sascha On Fri, Jun 11, 2010 at 11:59, Sascha Mäkelä <sascha.makela at gmail.com>wrote: > 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/83def799/attachment.htm>
- Previous message: QtSql and Debian package probelm
- Next message: QT map widget
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]