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

Expose QQuickItem::mapRectToItem (and mapRectFromItem) to QML for better performance

    XMLWordPrintable

Details

    • 7ac1a943b824d8624d16397fd4f8a5fa17a7dd9b

    Description

      QQuickItem::mapRectToItem and QQuickItem::mapRectFromItem should be exposed to QML in similar way as QQuickItem::mapToItem and QQuickItem::mapFromItem.

      When working with e.g. 90 degree rotated views these mappings are required quite often, and it's pretty slow to do the mappings in the QML (or javascript) side. It's possible to create a C++ wrapper that simply calls these public functions, but for fully optimized QML version you'd probably need to implement a version that takes QQmlV8Function* as an input parameter.

      (I reported this as a bug, and not as a suggestion, because this is a performance issue in my opinion.)

      Attachments

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

        Activity

          People

            bodson Yann Bodson (Inactive)
            skananoj Sami Kananoja
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes