[Qt-interest] Open read-only sqlite database

Andreas Unger andi.unger05 at gmail.com
Sun Sep 27 18:17:48 CEST 2009


Hello all,

I'm using the qt sqlite database driver and it works well on a *nix
platform. However the statically compiled app on windows CE doesn't work.
SQLITE shows up on QSqlDatabase::drivers(), so its supported for sure, but
for some reason, I do not get any results back when I execute my query.

The problem right now is that when I execute db.open(), it creates the
database if it doesn't find it. I don't want this behavior. I'd like it to
issue an error if it doesn't find it instead of creating a new db. How do I
go about doing this?

Cheers,
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090927/f0620259/attachment.html 


More information about the Qt-interest-old mailing list