> > QSqlDatabasedb=QSqlDatabase::addDatabase("QSQLITE");
> >
> > db.setDatabaseName(dbPath); // Cannot open database when
deployed as rpm
> >
> > boolok=db.open();
> >
> > ...
> >
> > }
> >
> >
> >
> >
[devel-boun...@lists.sailfishos.org]
on behalf of Martin Kampas [martin.kam...@ubedi.net]
Sent: Tuesday, November 12, 2013 10:25 AM
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] QSqlDatabase cannot create db file when deployed
as rpm package
Hi
My guess is missing write permissions
LITE");
> db.setDatabaseName(dbPath); // Cannot open database when deployed
as rpm
> boolok=db.open();
> ...
> }
>
>
>
> ____
> From: Andrey Kozhevnikov
> To: devel@lists.sailfishos.org
> Sent: Monday, November 11, 2013 11:32 PM
> Subject: Re: [SailfishDevel]
le can be created as expected with this
configuration.
>
>Thanks,
>William
>
>
>
>
>
> From: Andrey Kozhevnikov
>To: devel@lists.sailfishos.org
>Sent: Tuesday, November 12, 2013 12:14 AM
>Subject: Re: [SailfishDevel] QSqlDatabas
ith this configuration.
Thanks,
William
*From:* Andrey Kozhevnikov
*To:* devel@lists.sailfishos.org
*Sent:* Tuesday, November 12, 2013 12:14 AM
*Subject:* Re: [SailfishDevel] QSqlDatabase cannot create db file when
deployed as rpm package
have you add
append(".stockona_db");
qDebug()<<"DBpath="<
>
>
>________
> From: Andrey Kozhevnikov
>To: devel@lists.sailfishos.org
>Sent: Monday, November 11, 2013 11:32 PM
>Subject: Re: [SailfishDevel] QSqlDatabase cannot create db fi
.sailfishos.org
*Sent:* Monday, November 11, 2013 11:32 PM
*Subject:* Re: [SailfishDevel] QSqlDatabase cannot create db file when
deployed as rpm package
My project working with QSQLITE local database, and everything good :)
Share your code and we can found issues.
On 12.11.2013 02:35, Stockona
/
QStringdbPath=QString(DEPLOYMENT_PATH); dbPath.append(".stockona_db");
qDebug()<<"DBpath="<
To: devel@lists.sailfishos.org
Sent: Monday, November 11, 2013 11:32 PM
Subject: Re: [SailfishDevel] QSqlDatabase cannot create db file when deployed
as rpm package
My pro
My project working with QSQLITE local database, and everything good :)
Share your code and we can found issues.
On 12.11.2013 02:35, Stockona wrote:
When I switched to "Deploy by copying binary", the database is created
and connected correctly.
Changing the deployment to rpm package the same co
When I switched to "Deploy by copying binary", the database is created and
connected correctly.
Changing the deployment to rpm package the same code just failed with database
error message "out of memory Error opening database."
I checked in Emulator terminal and the database file was not create
10 matches
Mail list logo