Simple question:

Is there anyway to tell if a file exists on a server or network address such as //192.168.0.2/foo/bar.txt

I use QFile::exists( "\\192.168.0.2\foo\bar.txt" ) which works perfectly when connected to the server but say I was in an airport and not connected to the same network, the exists() function hangs and does not timeout.

Is there any way to detect if there is a connection to the server?

Thanks in advance