I am working on QT4.6, where i am using
Qt Code:
To copy to clipboard, switch view to plain text mode 
state to detect when the network cable is unplugged, but with this approach, i have to use continuous polling to scan the status of the network and then update the UI is there a better way than polling on network interface to find the status network changed??