title: setting static IP for wifi connection in QT
body: <p>I am trying to create a QT based application that scan and connect WiFi networks. I am using <a href="http://doc.qt.digia.com/qtmobility-1.0/bearermonitor.html" rel="nofollow">this example</a> as a reference code. </p>
  
  <ol>
  <li>Is it possible to assign static IP for the WiFi connection using <a href="http://doc.qt.io/qt-5/qnetworkconfigurationmanager.html#defaultConfiguration" rel="nofollow">QNetworkConfiguration</a> or any related class ? </li>
  <li>How to authenticate the networks that are password protected ?</li>
  </ol>
  
  <p>thanks in advance......</p>
  
  <p>I have created a net work session using the below code set..</p>
  
  <pre><code>void BearerMonitor::createNewSessionFromQml(QString ssid)
  {
      QList&lt;QNetworkConfiguration&gt; allConfigurations = manager.allConfigurations();
      while (!allConfigurations.isEmpty()) {
          QNetworkConfiguration config = allConfigurations.takeFirst();
          if(config.name()==ssid)
              createSessionFor(config);
      }
  }
  
  SessionWidget::SessionWidget(const QNetworkConfiguration &amp;config, QObject *parent):QObject(parent)
      {
          session = new QNetworkSession(config, this);
          session-&gt;open();
  }
  </code></pre>