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

QNetworkConfigurationManager::allConfigurations() never includes WLAN

    XMLWordPrintable

    Details

      Description

       

      QEventLoop eventLoop;
      QNetworkConfigurationManager manager;
      QObject::connect( &manager, &QNetworkConfigurationManager::updateCompleted, &eventLoop, &QEventLoop::quit );
      
      manager.updateConfigurations();
      eventLoop.exec();
      
      QStringList list;
      
      for( auto i : manager.allConfigurations() ) {
          if( QNetworkConfiguration::BearerWLAN == i.bearerType() )
              list.append( i.name() );
      }
      
      return list;

      The returned list is always empty. Also the event loop ends immediately. But the same code works properly with Qt5.10.0 and Qt5.8.0 (in the same environment of course).

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              cnn Qt Core & Network
              Reporter:
              po po
              Votes:
              10 Vote for this issue
              Watchers:
              17 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes