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

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes