Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-96795 QtLocation maps to Qt 6.2
  3. QTBUG-105241

QtLocation shouldn't use QV4 internals

XMLWordPrintable

    • Icon: Technical task Technical task
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.4.0 RC1
    • Location
    • None
    • Team 1 Foundation_Sprint 44
    • a6c48812ef (qt/qtlocation/dev) a6c48812ef (qt/tqtc-qtlocation/dev)

      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.

       

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

            vhilshei Volker Hilsheimer
            fabiankosmale Fabian Kosmale
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes