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

Add itemToScene transformation to QQuickItem as property

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • Quick: Other
    • None

    Description

      Dear Qt Developers,

      i am developer of a larger system with QML and i found rough edges, I will post suggestions as my time allows:

      In scene graphs system, as found in games or even the older GraphicsFramework it is common to access the localToScene transformation of an item (aka world orientation), that is position, rotation relative to common reference point (world coordinates) - not so in QtQuick. Here it is not exposed from internal rendering scenegraph. Why ?

      Common use case:

      Wiring of two items/subitems with spline "cables" requires to track the world position of that item. Ofc. mapToItem function exists, but they lack a signal, when the hierarchy changes.

      Suggestion: expose transformation to QML/C++, post transformationChanged signal, when hierarchy was updated.

      Current workaround: Install listeners in all parent items of the one being tracked -> cumbersome, not performant.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            frederikgrünzahn Frederik Grünzahn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes