Hi.
I would like to assign Ip address to eth0 which is not assigned IP address in QT
is this possible?
generally
#ifconfig eth0 192.168.121.1 up
I would like to make a code like above function in Qt
Help me..
Hi.
I would like to assign Ip address to eth0 which is not assigned IP address in QT
is this possible?
generally
#ifconfig eth0 192.168.121.1 up
I would like to make a code like above function in Qt
Help me..
Use QProcess to execute the above command ?
No.
I would like to make code Using Network classes
simply, you cannot.
this task is not platform independent, so you have to use Native APIs or QProcess to launch external program
A camel can go 14 days without drink,
I can't!!!
As stated, the network classes do not support this.
If you require this functionality in code (rather than just executing the said application), you could always include the code from ifconfig source (but of course, this would mean you must not license your application under a more restrictive license than ifconfig itself)
Bookmarks