Using QtHostinfo.lookupHost in PySide
I am working on a project where I want to confirm the existence of a host on a local network. In the QtNetwork package in Qt, the QHostInfo::lookupHost method is a convenient way of searching for a host without needing to implement any kind of pinging or being dependent on a ping system call. Its asynchronous call makes it convenient to create a dialog waiting for the call to return with a slot in either the dialog or the main program to handle the return. From Qt's Documentation for QHostInfo: To look up a host's IP addresses asynchronously, call lookupHost(), which takes the host name or IP