Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.9
-
None
-
1
-
5b99c8897 (dev), 577f99cf4 (6.10), 67b399b29 (6.9), dd25afca6 (tqtc/lts-6.8)
-
Foundation Sprint 134
Description
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
Attachments
For Gerrit Dashboard: QTBUG-138409 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
660927,3 | Remove outdated statement on modifying lists | dev | qt/qtlocation | Status: MERGED | +2 | 0 |
661191,2 | Remove outdated statement on modifying lists | 6.10 | qt/qtlocation | Status: MERGED | +2 | 0 |
661325,2 | Remove outdated statement on modifying lists | 6.9 | qt/qtlocation | Status: MERGED | +2 | 0 |
661476,2 | Remove outdated statement on modifying lists | tqtc/lts-6.8 | qt/tqtc-qtlocation | Status: MERGED | +2 | 0 |