arjoshi
11th March 2011, 13:57
Hello:
I have mysql 5.x and QT 4.x installed on Suse Linux. I would like to access mysql through QT. I searched for a solution on the web but haven't found a satisfactory one.
I tried the following code:
#include <QCoreApplication>
#include <QtSql>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
qDebug() << QSqlDatabase::drivers();
return a.exec();
}
but got the output as:
("QSQLITE",QPSQL7","QPSQL")
would apreciate any help.
I have mysql 5.x and QT 4.x installed on Suse Linux. I would like to access mysql through QT. I searched for a solution on the web but haven't found a satisfactory one.
I tried the following code:
#include <QCoreApplication>
#include <QtSql>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
qDebug() << QSqlDatabase::drivers();
return a.exec();
}
but got the output as:
("QSQLITE",QPSQL7","QPSQL")
would apreciate any help.