[Solved]Gateway and QProcess
-
Is there a simple way to get the Gateway on eth0;
I have tried with this command
"etc/netstat -rn |grep eth0 | grep '^0.0.0.0' | cut f4";Or does qt got another way to get this info in a simple way just as to get the ip and netmask with the Network entry and interface class;
-
take a look on "QHostAdress":http://developer.qt.nokia.com/doc/qt-4.8/qhostaddress.html
and "QHostinfo":http://developer.qt.nokia.com/doc/qt-4.8/qhostinfo.html -
And I've found this "thread ":http://developer.qt.nokia.com/forums/viewthread/7497
-
Exactly what I have found to but I dont see where to get the gateway in the QHost-classes