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

Add an ItemAncestorHasChanged itemChange notification to QQuickItem.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • None
    • None
    • None

    Description

      Property inheritance between items of a common type is difficult to do in a non degenerate fashion at the moment. It's possible to walk up the parent tree to find an ancestor of the same type to connect, but if an intermediate item is re-parented after this lookup is done the only real way to know that's happened is to connect to the parentChanged signal of every item assessed.

      A recursive ItemAncestorHasChanged notification would be the least inefficient method of correcting this. It remains to be seen what sort of performance trade off this would entail, but we already do something effectively the same for enabled and visible changes and those are perhaps more likely to hit deep hierarchies than a parent changes.

      Attachments

        Issue Links

          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
              andrew.den.exter Andrew den Exter
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes