QNCM -> QNetworkInformation

In mobile apps it’s always important to know if you’re online or offline. I’m using this always in simple or complex workflows.

The QNetworkConfigurationManager (QNCM) Class is obsolete in Qt 6. But there’s a new one with more features in Qt 6: QNetworkInformation. Unfortunately you cannot simply change an import – you have to rewrite this. Most of my apps read and write data from / to server and now in Qt 6 they cannot compile. Let’s see how we can solve this.