A
A
AlexSer2021-05-11 10:29:08
Qt
AlexSer, 2021-05-11 10:29:08

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

1 answer(s)
A
Alexander Ananiev, 2021-05-11
@SaNNy32

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 question

Ask a Question

731 491 924 answers to any question