Details
-
Suggestion
-
Resolution: Won't Do
-
P4: Low
-
None
-
5.11
-
None
Description
dumpObjectTree() only prints the object's children, not its parents. Printing the ancestory of an item is useful when you're trying to find out which object it is (especially useful in QML where objects like controls are composed of many other objects, and don't have objectNames set).
The object tree printed could be quite large, so one option might be to only print the ancestors that lead to the object.
Alternative names:
- dumpObjectAncestry()
- dumpObjectAncestryTree()
- dumpObjectParentTree()
Attachments
Issue Links
- relates to
-
QTBUG-66771 Make QObject::dumpObjectTree() and QObject::dumpObjectInfo() invokable
- Closed