How can I get the network is DHCP or not
Unsolved
General and Desktop
-
Hi
I have used
QNetworkConfigurationManager
to listen all the network state.I also want to know how to get the network is DHCP or not when I change the configuration( change
/etc/network/interface
and/etc/init.d/networking restart
).
But I can't find anything about DHCP inQNetworkConfiguration
Regards
Mihan -
This is not possible with Qt.
-
@Christian-Ehrlicher Okey, thanks
-
Hi,
There's no API for that but, AFAIK, you can get the information by reading the configuration file of your system with QFile and parse its content.