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

Add supportedPositioningMethodsChanged signal to QGeoPositionInfoSource and QDeclarativePositionSource

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P1: Critical
    • 5.12.7
    • 5.9
    • Positioning
    • None
    • iOS/tvOS/watchOS

    Description

      If the user turns off the Location, the PositionSource.sourceError  property is updated to PositionSource.ClosedError . But if the user turns on the Location the PositionSource.sourceError is not updated and it remains PositionSource.ClosedError.

      This effectively means there is currently no way for an application to know when valid positioning methods become available again.
      For this reason, the position sources (C++ and QML ones) should signal when this happens.
      This can be done at different points in time:

      • When a sourceError from the platform is received by the source.
        This is somehow plaform-independent, but can only detect changes from NoPositioningMethods to something else or vice-versa
      • When the platform updates the supportedPositioningMethods.
        This approach is more fine grained, being able to report changes between any positioning method, but requires platform integration.

      Steps to fix:

      • Add the signal to QGeoPositionInfoSource and QDeclarativePositionSource, and emit it in sourceErrorReceived.
      • Add platform integration for Android
      • Add platform integration for iOS
      • Add platform integration for WinRT

      Attachments

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

        Activity

          People

            ablasche Alex Blasche
            taipan BogDan Vatra
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: