Re: QtSql and Debian package probelm

2010-06-11 Thread Sascha Mäkelä
I have now like this: QSqlDatabase db = QSqlDatabase::addDatabase(QSQLITE); QString name = QDir::homePath() + /CurrencyConverter; db.setDatabaseName(name); return db.open(); It works fine directly from Qt Creator, but it doesn't work when installing the Debian package. Any ides? On Thu, Jun

Re: QtSql and Debian package probelm

2010-06-11 Thread Daniil Ivanov
Hi Sascha! Can you change your code like this: QSqlDatabase db = QSqlDatabase::addDatabase(QSQLITE); QString name = QDir::homePath() + /CurrencyConverter; db.setDatabaseName(name); if (!db.open()) { qDebug() name db.lastError(); return false; } else

Re: QtSql and Debian package probelm

2010-06-11 Thread Daniil Ivanov
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

Re: QtSql and Debian package probelm

2010-06-11 Thread Sascha Mäkelä
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.mak...@gmail.comwrote: On Fri, Jun 11, 2010 at 11:42, Daniil Ivanov daniil.iva...@gmail.comwrote:

Re: QtSql and Debian package probelm

2010-06-11 Thread Sascha Mäkelä
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,

QtSql and Debian package probelm

2010-06-10 Thread Sascha Mäkelä
Hi, I just made a Debian package of my app. I'm using QtSql in it. But for some reason when I install the package, all the SQL things don't work. My guess is that I'm missing something in the Build-Depends line in the control file. How can I check what libs I need to add there and what are their

Re: QtSql and Debian package probelm

2010-06-10 Thread Ram Kurvakat
you need libqt4-sql and probably libqt4-sql-plugin ( plugin = sqlite , if you are using sqlite plugin ) - Original Message - From: Sascha Mäkelä Sent: 06/10/10 01:01 PM To: maemo-developers Subject: QtSql and Debian package probelm Hi, I just made a Debian package of my app. I'm using

Re: QtSql and Debian package probelm

2010-06-10 Thread David King
On 2010-06-10 15:01, Sascha Mäkelä sascha.mak...@gmail.com wrote: Hi, I just made a Debian package of my app. I'm using QtSql in it. But for some reason when I install the package, all the SQL things don't work. My guess is that I'm missing something in the Build-Depends line in the control

Re: QtSql and Debian package probelm

2010-06-10 Thread Daniil Ivanov
Hi Sascha! You don't have to include libqt4-network and libqt4-sql in Depends:. Where do you save your DB? Thanks, Daniil. On Thu, Jun 10, 2010 at 3:47 PM, Sascha Mäkelä sascha.mak...@gmail.com wrote: This how it looks now: Depends: ${shlibs:Depends}, ${misc:Depends}, libqt4-network,

Re: QtSql and Debian package probelm

2010-06-10 Thread David King
On 2010-06-10 15:47, Sascha Mäkelä sascha.mak...@gmail.com wrote: This how it looks now: Depends: ${shlibs:Depends}, ${misc:Depends}, libqt4-network, libqt4-sql, libqt4-sql-sqlite But still it doesn't work. Am I missing something? The app works fine when I run it in N900 from Qt Creator.

Re: QtSql and Debian package probelm

2010-06-10 Thread Sascha Mäkelä
Hmm... I'm not sure what you mean by this. I simply use something like this to open the database: QSqlDatabase db = QSqlDatabase::addDatabase(QSQLITE); db.setDatabaseName(AppName); return db.open(); On Thu, Jun 10, 2010 at 15:51, Daniil Ivanov daniil.iva...@gmail.comwrote: Hi

Re: QtSql and Debian package probelm

2010-06-10 Thread Sascha Mäkelä
I'm just getting: QSqlQuery::value: not positioned on a valid record It's like the app is unable to write any data to the SQLite database. As I said, it does work fine when running it from Qt Creator or MADDE. On Thu, Jun 10, 2010 at 15:57, David King dav...@openismus.com wrote: On