View Full Version : database disconnected !

3rd May 2011, 10:44
hi every one

i am coding a program that using MYSQL database.

the problem is :

when i change the time or date of the computer while my program is running the MYSQL database disconnect.

so .. is there any way that i can get a signal when the database disconnect ,or when the computer date or time change ??

4th May 2011, 00:46
You can fetch the error from QSqlDatabase::lastError() when a query fails.