[Qt-interest] IP address change

DiogoLR diogolr at gmail.com
Fri Apr 8 19:20:25 CEST 2011


How about you use a QProcess with an ifconfig command :)

Regards,

Diogo.



2011/4/8 Jason H <scorp1us at yahoo.com>

> I don't think that falls under what Qt should be doing - system
> administration.
> The OS gets to control that stuff. DHCP, static, etc, and don't forget
> permissions. Your process might not have credentials to do that (group
> policy, etc) as it may open a security hole.
>
> But I don't think Qt has anything like that. Bearer Management from
> QtMobility would be the most complicated you can get.
>
>
> ------------------------------
> *From:* "frares at gmail.com" <frares at gmail.com>
> *To:* QT Interest List <qt-interest at trolltech.com>
> *Sent:* Fri, April 8, 2011 12:54:51 PM
> *Subject:* [Qt-interest] IP address change
>
> Hi,
>
> I am trying to change an ethernet interface IP address using only Qt, but I
> could not find how.
>
> I have managed to find all interfaces and to select the main one among the
> list from QNetworkInterface::allInterfaces() , and read its IP and netmask ,
> but I could not find how to change those.
>
> Is it possible or do I have to use the OS API ?
>
> Thanks a lot
> Francisco
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110408/729eeed2/attachment.html 


More information about the Qt-interest-old mailing list