上一话题

Qt Help Project

下一话题

Qt Location C++ API

Qt Location QML API changes since 5.4

Information about the Qt Location QML API changes since 5.4

此页面列表 QtLocation QML API changes since the first Qt Location Technology Preview in Qt 5.4. Since Qt 5.6 this API is considered to be final and subsequent releases will not break the given API anymore.

注意

The public C++ API remained binary compatible since Qt 5.4.

** ** Map 组件

  • removed wheelAngleChanged() signal

  • 添加 error 特性

  • 添加 errorString 特性

  • 添加 copyrightLinkActivated signal

  • removed toScreenPosition() method

  • 添加 fromCoordinate () method

  • replaced cameraStopped() method with prefetchData 方法

  • replaced fitViewportToGeoShape() method with visibleRegion 特性

  • 添加 color 特性

  • 添加 clearData 方法

** ** MapGestureArea 组件

  • removed movementStopped() signal

  • replaced isPanActive and isPinchActive properties with panActive and pinchActive properties

  • replaced activeGestures with acceptedGestures

  • replaced MapGestureArea .ZoomGesture with MapGestureArea.PinchGesture

  • removed properties panEnabled and pinchEnabled, please use acceptedGestures instead

** ** MapPolyline 组件

  • 添加 containsCoordinate 方法

  • 添加 coordinateAt 方法

  • 添加 insertCoordinate 方法

  • 添加 replaceCoordinate 方法

  • 添加 removeCoordinate 方法

Geoservice ‘s plugin parameters

  • the HERE plugin uses the here prefix in front of each plugin parameter name

  • the OSM plugin uses the osm prefix in front of each plugin parameter name