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

Make it easier to search objects in a QML context hierarchy

XMLWordPrintable

      People want to find "children" of a QML-created object by either ID or objectName. Now "children" is a fuzzy concept in QML since neither QObject-children nor QQuickItem-children are actually fail-safe in finding "everything in a QML document". An approximation that's fairly easy to implement is "everything in a tree of QML contexts". It will tend to produce some false positives: Elements created by instantiating other documents. We can probably live with those.

      Since we do already store a linked list of child contexts for each parent context, it would be relatively simple to expose those child contexts and have functionality that searches their properties.

        For Gerrit Dashboard: QTBUG-140389
        # Subject Branch Project Status CR V

            qtqmlteam Qt Qml Team User
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change