-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
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 |
676628,2 | WIP: QQmlContext: Implement childContexts() | dev | qt/qtdeclarative | Status: NEW | -2 | 0 |