I want the user component to obtain the user component that uses it, and I want to do it through editor settings. I have tried many methods, but they have not worked.
However, if I use getself to perform runtime assignment like a sub user control, then there is no problem.
in short,When using the editor, how can I make my custom widget aware of who is wrapping it? Or how can I obtain the slot of this custom control?
It seems that I have identified the problem. When other controls use the user control, such as this “dragbutton”,Self→getSlot() is ok, but CanvasPanel→getSlot() is none.
My English is not so good.So let me confirm this again: When user widget A wraps user widget B, the wrapped widget B cannot obtain the slots through its top-level widget . However, the self reference of B has slots.
I haven’t read the source code. I’m just guessing what might be the connection between the user widget and the top-level widget of the user widget ?