QML Ask user to connect to the internet if not connected?
-
Check "QNetworkAccessManager::networkAccessible()":http://developer.qt.nokia.com/doc/qt-4.8/qnetworkaccessmanager.html#networkAccessible-prop
-
There seems to be one other possible path, but I have never used it, so I can't help much. Take a look at "QDeclarativeEngine::networkAccessManager()":http://developer.qt.nokia.com/doc/qt-4.8/qdeclarativeengine.html#networkAccessManager but it still does require C++, as it would seem.
Or, you can use web kit or JS to access network. Or try to instantiate a QML component by URL, and display a message if that fails. But most probably, C++ will give you the most control over what is happening and when.