[Qt-interest] Check network connection using QT classes.

Tolik Piskov tolik.piskov at gmail.com
Fri Nov 27 14:23:47 CET 2009


Don't know if this is the mailing list I should send my question to, but
anyways. What I'm trying to do is to check whether my machine has working
internet connection. I tried to use QNetworkAccessManager to send GET
request to some server and expect finished() signal if everything is
ok. When I block my program with firewall -- everything is ok. But if I take
network cable out -- my program crashes. I think it is due to bind to an
nonexistent address.

Maybe there's better ways to check network connection?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091127/2844e91d/attachment.html 


More information about the Qt-interest-old mailing list