Check Wireless State Change in qt

I want to connect some signal to my handler slot for notify me when wireless connection disconnect or when connect ( be carful I do not care for internet Access only check for connection to modem)
I use "onlineStateChanged" in "QNetworkConfigurationManager" but it does not work Properly
how I should do this?

@raven-worx with probability of 99% my problem is that you say
because when i disconnect All connections and connect again my handler function call properly
can you tell me how only focus on wireless ?