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

Add supportedPositioningMethodsChanged signal to QGeoPositionInfoSource and QDeclarativePositionSource

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: In Progress
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 5.9
    • Fix Version/s: None
    • Component/s: Positioning
    • Labels:
      None
    • Platform/s:
      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

            • Assignee:
              ablasche Alex Blasche
              Reporter:
              taipan BogDan Vatra
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: