Qt-interest Archive, May 2008
Re: Windows XP & the brutal QSQLITE driver not loaded message
Message 1 in thread
Hi,
> It compiles and builds under XP and yet, when it runs, I get the QSQLITE
> driver not loaded. [...]
Does this happen on the development machine or your friend's machine?
I suggest the following:
* Move all variable declaration and initialization inside main() and
especially "db". Initialize "db" after creating the QApplication. Does this
make a difference?
* Print error messages. What is the return value in the following line?
QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE")
Also try calling "QSqlDatabase::lastError()".
--
[ signature omitted ]
Message 2 in thread
Hi,
> Does this happen on the development machine or your friend's machine?
If it happens on the development machine, run the examples in examples\sql.
They're using the SQLIRE driver. Do these examples work properly?
--
[ signature omitted ]
Message 3 in thread
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#3333ff">
<font size="+1">First, I would like to thank everyone who replied for
their suggestions and ideas. I tried them all except for Dimitris whose
suggestions arrived this morning. The suggestions all failed so last
night I reconfigured and remade QT. This morning I tried everything
again and it all worked perfectly so it looked like the solution was
simple; although very time consuming. <br>
<br>
Dimitris suggestions I have saved because I know I will need them in
the future.<br>
<br>
Again, thanks for all the assistance.<br>
<br>
Robert Berman<br>
</font>
</body>
</html>
--
[ signature omitted ]