I guess there are two possible solutions, both of them require to add custom C++ code:
Use the Qt Network C++ components to determine whether internet access is possible.
Or add native code parts to check the connection with Java (for Android) and Objective-C (for iOS) and call them from Qt C++.
The advantage of the first solution is that no platform-specific code is needed, so I would go with that if possible. Using native code might offer more details though, like checking whether WiFi or mobile internet is used for the connection.
See here to learn about Integrating C++ and QML.
Best,
Günther
This reply was modified 7 years, 3 months ago by GT.
By signing up, you consent to Felgo processing your data & contacting you to fulfill your request. For more information on how we are committed to protecting & respecting your privacy, please review our privacy policy.
Want to find out if Felgo is a good fit for your company?
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: