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

Incorrect qtlocation documentation

XMLWordPrintable

    • 1
    • 5b99c8897 (dev), 577f99cf4 (6.10), 67b399b29 (6.9), dd25afca6 (tqtc/lts-6.8)
    • Foundation Sprint 134

      The documentation stating that you cannot change a coordinate in MapPolyline path directly after the path has been added to the item. And that you need to copy the path first, change the coordinate and assign the path copy back to MapPolyline path https://doc.qt.io/qt-6/qml-qtlocation-mappolyline.html#details

      I tested it and you actually don't need to copy the path to update it. You can directly change the coordinate(s).

       

      // this works
      mapPolyline1.path[0] = QtPositioning.coordinate(5.0, 5.0)
      // this also works
      mapPolyline1.path[0].latitude = 5.0

       

        For Gerrit Dashboard: QTBUG-138409
        # Subject Branch Project Status CR V

            matthias_rauter Matthias Rauter
            k0rahman Karim Abdelrahman
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes