I want to check if there is network connection when my app start under splash screen.Splash doesnt important, important point is how can i check network connection in qml? Solution can be with qml, javascript, c++ etc.
Asked
Active
Viewed 3,576 times
0
-
i have solved it, QNetworkConfigurationManager::isOnline () solves problem. Link is http://doc.qt.nokia.com/latest/qnetworkconfigurationmanager.html#isOnline and if there will be problem about library, it's solution is in here, http://www.known-issues.net/qt/qnetworkaccessmanager.html#comment-210 – Gürcan Kavakçı Jul 22 '11 at 08:24
-
QNetworkConfigurationManager::isOnline () returns false on Symbian when connected to a valid Wifi. – Rémy DAVID Jun 08 '12 at 13:05
-
QNetworkConfigurationManager::isOnline () return true in plane mode in windows 10 (just tested on it) – crgarridos May 04 '16 at 12:32
1 Answers
1
You can use the NetworkInfo QML element from the QtMobility.systeminfo 1.1 module. See: http://doc.qt.nokia.com/qtmobility-1.2/qml-networkinfo.html for more information.

onion
- 417
- 3
- 3