Get local ip adress
is there a way to get the local IP adress ?
This "tool":http://betalabs.nokia.com/apps/nokia-connectivity-analyzer/more_info can do it
and it seems to be made with the Qt Creator.
!http://betalabs.nokia.com/sites/default/files/mjtasa/Diagnostics.png(Nokia's Connectivity Analyzer - interface)!
I think that "QNetworkInterface::allInterfaces ()":http://qt-project.org/doc/qt-4.8/qnetworkinterface.html#allInterfaces can give you a list of IPs including 127.0.0.1.
QList<QHostAddress> list = QNetworkInterface::allAddresses();
for(int nIter=0; nIter<list.count(); nIter++)
qDebug() << list[nIter].toString();
Please find an example "here":http://www.developer.nokia.com/Community/Wiki/Getting_Host's_IP_addresses_and_Interfaces
Edit: Sorry, I saw that the question is related to QML after publishing the post.