Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

Can't properly detect QSqlDatabase disconnect

$
0
0
Hello everyone, I have an issue trying to do a few things if an unexpected connection loss occurs, that is, a database disconnection. My approach was using a method isOpen()*on a *QSqlDatabase object, which is apparently unreliable for this scenario (it keeps returning true even when db connection is lost) Can anyone direct me on how to do this detection?

Viewing all articles
Browse latest Browse all 18427

Trending Articles