Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-25412

QNetworkConfigurationManager::isOnline always returns false in case of offline mode or disabled mobile network connection

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.7.4
    • None
    • Symbian Belle, Nokia E7-00

      QNetworkConfigurationManager::isOnline always returns false in case of "offline mode" or disabled mobile network connection, even if WLAN connection is active.

      To make sure that configuration is up to date the following code is used:

      m_networkManager = new QNetworkConfigurationManager(this);
      if (m_networkManager) {
      QObject::connect(m_networkManager, SIGNAL(updateCompleted()), this, SLOT(slotUpdateCompleted()));
      QObject::connect(m_networkManager, SIGNAL(onlineStateChanged(bool)), this, SLOT(slotOnlineStateChanged(bool)));
      m_networkManager->updateConfigurations();
      }

      And QNetworkConfigurationManager::isOnline() is called within slotUpdateCompleted(), always returns false in specified cases.

      When mobile netwok is active QNetworkConfigurationManager::isOnline() returns true.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            cristiano cristiano di flora
            damavik Vital Vinahradau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes