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 experts exchange (http://www.experts-exchange.com/Database/MySQL/Q_21276641.html
). The accepted solution contains two links. One link points to prepared statements (which is irrelevant ) and the other link seems to be broken
I tried the following code: but got the output as:
would apreciate any help.
int main(int argc, char *argv)
QCoreApplication a(argc, argv);
qDebug() << QSqlDatabase::drivers();