[Qt-interest] Checking if connected to the network
David Ching
dc at dcsoft.com
Sat May 16 16:58:18 CEST 2009
> Date: Tue, 12 May 2009 11:25:22 -0700
> From: Ann Marie <annmarieqt at gmail.com>
>
> Could someone provide me with some information/sample code on how my qt
> applicatoin can check and see if the machine it is running on is
> connected
> to the network?
As Thiago said, Qt doesn't have a cross platform API for this. If you are
interested in Windows, use the Windows API InternetGetConnectedState().
I'm not sure if the presence of this Windows API means Windows does a better
job of managing Internet connections than the other platforms, or if
whatever it does could be implemented on the other platforms.
-- David
More information about the Qt-interest-old
mailing list