Component hierarchy question


#1

I have a compoent and its desktoped child.

Can I use “Component::getParentComponent()” from the desktoped child to acces parent ?
Is parent such considered ? Even if I “addChild(desktopedChild)” ?


#2

Not sure precisely what you mean, but a component that’s on the desktop can’t have a parent.


#3

That s what I have been wondering abt.
(Sorry for uncalrity, Im not a “native” english speaker)

Well, is there any way to know from desktopped component, by which object it was instanciated ?


#4

Well… no…

A component is created by the ‘new’ operator, not by another component (?)