Qt 6.11 is out! See what's new in the release
blog
How can I get the network is DHCP or not
-
Hi
I have used
QNetworkConfigurationManagerto 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/interfaceand/etc/init.d/networking restart).
But I can't find anything about DHCP inQNetworkConfigurationRegards
Mihan -
This is not possible with Qt.
-
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.