How to get system status in Qt?

How to get the status of a system network in Qt, how do we get event hits in .NET, so that every time we connect a network, we get a signal about the status of the network connection?

Is there any function that has the same functionality as I mentioned above?

Using ping and other network configuration methods takes little time.
But I need to display it as fast as I could, except using a specific port to listen on the socket and display its error.

Can someone help me?

+6
source share
1 answer

I found a good example of getting network information using QT: http://developer.nokia.com/community/wiki/Get_Network_information_using_Qt

For example, you can get signal strength from an open participant, networkSignalStrength, from QSystemNetworkInfo. And if you look at the QSystemNetworkInfo link, you can find signals like networkSignalStrengthChanged so you can handle something when the strength of the network signal changes.

Hope this helps!

+1
source

Source: https://habr.com/ru/post/976343/


All Articles