Currently I use this code for retrieving the ping of a target system. However it works so far only under linux and it is likely dependent on the locale settings. To add suppor
You can ping on both Windows and Linux using this:
QStringList parameters; #if defined(WIN32) parameters << "-n" << "1"; #else parameters << "-c 1"; #endif parameters << m_sHostName; int exitCode = QProcess::execute("ping", parameters); if (exitCode==0) { // it's alive } else { // it's dead }