![]() |
2011-06-07
, 05:04
|
Posts: 141 |
Thanked: 41 times |
Joined on Apr 2011
@ Ahmedabad, India
|
#2
|
![]() |
2011-06-07
, 06:29
|
Posts: 2 |
Thanked: 0 times |
Joined on Jun 2011
|
#3
|
Can you run the below code to verify that the required drivers are installed ?
#include <QCoreApplication>
#include <QSqlDatabase>
#include <QSqlError>
#include <QStringList>
#include <QtDebug>
int main( int argc, char **argv )
{
QCoreApplication app( argc, argv );
qDebug() << QSqlDatabase::drivers();
QSqlDatabase db( QSqlDatabase::addDatabase( "QMYSQL" ) );
qDebug() << db.lastError();
}
If the output of this code shows that drivers are installed, then make sure you create QApplication or QCoreApplication instance before you use classes from the QtSql module.
If the instance is created at a later stage, then also it throws such errors
Killing remote process(es)... Starting remote process ... ("QSQLITE") QSqlDatabase: QMYSQL driver not loaded QSqlDatabase: available drivers: QSQLITE QSqlError(-1, "Driver not loaded", "Driver not loaded") Killing remote process(es)... Finished running remote process. Exit code was 0.
![]() |
2011-06-07
, 08:24
|
Posts: 435 |
Thanked: 769 times |
Joined on Apr 2010
|
#4
|
The Following 3 Users Say Thank You to gionni88 For This Useful Post: | ||
![]() |
2012-04-23
, 15:16
|
Posts: 323 |
Thanked: 116 times |
Joined on Jul 2010
|
#5
|
![]() |
2012-04-23
, 15:45
|
Posts: 84 |
Thanked: 45 times |
Joined on Jan 2012
@ Damascus Syria
|
#6
|
Ive been writing small apps in qt for a while and have decided to try writting a mobile app for my N900. I have written the code And it works great on my linux development box.
THen having installed MADDE i am able to deploy the program to the N900 using mad developer.
THe program loads but i get the followin error displayed
I do so but still get the error
So i do have it installed.
i also have this in my .pro file
Regards