Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How can we identify if the application built in qt is connected to the network or not?



  • I have tried to use the networkAccessibleChanged signal of the QNetworkAccessManager class but it does not work properly. Can someone please help me to find the solution to this issue.


  • Moderators

    The only cross-platform way is to ping a known online server occasionally.

    If you are targeting Android only, you can use Java to read online status from the operating system.


Log in to reply