wirasto
17th November 2009, 01:38
I'm so impressed with QSqlDatabase. If I set like this..
QSqlDatabase db=QSqlDatabase::addDatabase(...);
db.setHostName("abc");
I can get value "abc" in everywhere with
qDebug() << QSqlDatabase::database().hostName()
How to create like that...?
QSqlDatabase db=QSqlDatabase::addDatabase(...);
db.setHostName("abc");
I can get value "abc" in everywhere with
qDebug() << QSqlDatabase::database().hostName()
How to create like that...?