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

Details

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

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes