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

Add an ItemAncestorHasChanged itemChange notification to QQuickItem.

XMLWordPrintable

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

      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.

        1. Main.qml
          0.6 kB
          Filippo Cucchetto
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes