title: Qt Scanning Wi-Fi by QNetworkAccessManager
body: <p>Welcome I have a problem with scanning Wi-Fi to get all available connecting in Wi-Fi. I have writed so far this code:</p>
  
  <pre><code>#include &lt;QCoreApplication&gt;
  #include &lt;QNetworkConfigurationManager&gt;
  #include &lt;QNetworkConfiguration&gt;
  #include &lt;QDebug&gt;
  #include &lt;QNetworkSession&gt;
  
  int main(int argc, char *argv[])
  
  {
      QCoreApplication a(argc, argv);
      QNetworkConfigurationManager ncm;
      QNetworkConfiguration cfg;
      QNetworkConfiguration::StateFlags flags;
  
      int count = QNetworkConfiguration::Active;
  
     qDebug() &lt;&lt; "Amount available connect in Wi-Fi :" &lt;&lt; count;
  
     qDebug() &lt;&lt; ncm.allConfigurations(flags = 0);
  
     return a.exec();
  
  }
  </code></pre>
  
  <p>I have a problem with shows allConfigurations. I have read documentation 
  <a href="http://doc.qt.io/qt-4.8/qnetworkconfigurationmanager.html" rel="nofollow noreferrer">Qt Network Configuration Manager</a>
  but I do not know how to do that.</p>