Answer the question
In order to leave comments, you need to log in
How to make it so that the connection to the database is monitored in Qt?
Good afternoon, who knows how in QT you can monitor the connection to the database. If you turn off the database server, so that a message about the disconnection immediately appears.
Answer the question
In order to leave comments, you need to log in
On the timer, make some thread a small request to the database. By mistake, diagnose the presence of a connection with the database.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question