Details
Description
Qt Location currently uses QV4 internals to convert lists of gadgets into JS arrays (for instance in QDeclarativePolygonMapItem::path via the fromList helper). That is most likely not necessary in Qt 6; the engine can generally deal with lists of gadgets quite well. Relying on V4 internals is also rather brittle, and the QML team would prefer if this low-level private API would only be used in declarative itself. Moreover, tooling has a much easier time dealing with specific types than with generic QJSValues.
Therefore, it should be investigated whether the usage of V4 API in QtLocation can simply be removed by instead returning plain QLists of gadgets instead.
Attachments
Issue Links
- relates to
-
QTBUG-99766 QML value type write-back support is inconsistent
- Closed
For Gerrit Dashboard: QTBUG-105241 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
430456,4 | Implement value-initialization for list<gadget> types | dev | qt/qtdeclarative | Status: ABANDONED | 0 | 0 |
430509,17 | Change QJSValue properties to QList<QGeoCoordinate/Rectangle> | dev | qt/qtlocation | Status: MERGED | +2 | 0 |
430550,6 | Register a conversion routine from QVariantMap to QGeoCoordinate | dev | qt/qtpositioning | Status: MERGED | +2 | 0 |
430558,6 | Register a conversion routine from QVariantMap to QGeoRectangle | dev | qt/qtpositioning | Status: MERGED | +2 | 0 |