Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business


OverviewFelgo 3 Support (Qt 5) › internet connection

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #13851




    i need to know if there is an active internet connection or not.

    what is the easiest way to check this?




    Felgo Team

    Hi Bas!

    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.



    • This reply was modified 8 years, 1 month ago by  GT.

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded