title: Check IP active address with Qt
body: <p>i'd need to check all the active IP address in my LAN.
  i tried with this code:</p>
  
  <pre><code>void MainWindow::on_pushButton_clicked() {
  QString baseNetowrk = "192.168.1.";
  for(int i = 0;i &lt; 255;i++) {
      QString currIp = (baseNetowrk + "%1").arg(i);
      //qDebug() &lt;&lt; "IP: " &lt;&lt; currIp;
      QHostInfo hostInfo = QHostInfo::fromName(currIp);
      qDebug() &lt;&lt; "NOME: " &lt;&lt; hostInfo.hostName();
  }
  </code></pre>
  
  <p>}</p>
  
  <p>But this shows all IP (I think in the ARP cache).<br>
  How can i only display active IP?</p>