Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How can we identify if the application built in qt is connected to the network or not?
Qt 6.11 is out! See what's new in the release blog

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 365 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hetal
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      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.

      (Z(:^

      1 Reply Last reply
      4

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved