I’d like to set the IP/Netmask of a network device to a specific value but can’t find a way to do this in Qt. It’s easy enough to find out the IP address of a device (Thank you QNetworkInterface) just not to change it unless I’ve missed something?
As far as I can tell changing values that are reported back into QNetworkAddressEntry objects won’t actually update the IP itself.
Platform is embedded linux.
I’d rather not resort to a call to ifconfig unless I have to!
As suspected there is no way to do this, Qt does not have the access permissions to perform the necessary calls.
The solution has been to construct a service daemon that we contact via DBus to execute commands for us, this then reports back asynchronously the result of the command.