How to find the child widgets of root?

Is there a way to get the parent child relationship between widgets? For instance if i wanted to see what the widget ID's of root or a panel or something similar. And even find what the parent widget is, if there is one.

oh, I missed a small section in the docs that stated the following:

  • id: widget id as a string, or array of id strings. Can be "this" to target the host widget, or "parent" to target the parent widget.

so getProp("parent", "id") works in my case!

That's it ! Besides this there isn't much that can be done to explore the widget tree programmatically, maybe something to improve in the future.