Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-40231

Add a convenience property Qt.InternetAccess in Qt Qml element.

    XMLWordPrintable

Details

    Description

      Add a convenience property InternetAccess in Qt Qml element.

      At a minimum this property should be true or false and should be available on all platforms.

      Whether an Internet connection is available or not is critical for commercial applications.

      1) When using cloud services. If the app can't connect to the server, let the user know that.

      2) In-app purchases!!! If the user tries to buy a virtual product and this fails because there is no Internet connection. The user must be informed that he needs an active Internet connection.

      3) When you are trying to connect to Facebook, Game Center, Google Play Game Services, Amazon GameCircle or any other social services. It would be nice to know beforehand in QML if an Internet connection is available or not in QML.

      Of course this information can be retrieved by using XMLHttpRequest in QML or by using QNetworkAccessManager in Qt. But this is a critical information that requires real-time updates and I think this alone would deserve a convenience property of its own and an optimal approach with minimum bandwidth usage.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            peter-har Peter Hartmann
            adrian.gabureanu Adrian Gabureanu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes