0
\$\begingroup\$

I have a widget base class and I would like to reuse (logic and wigdets as well) it.
I created an empty widget and set the parent class to the base class I would like to inherit from in the class settings.
Works fine. enter image description here But when I am trying to add any widget on top the pre-existing ones just disappear, they get overridden by the children, I guess. enter image description here

I found this post for a feature request, but it is quite old.

Just wondering if it is possible to add extra widgets without getting rid of the parent ones?

\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

You need to use an overlay which will allow you to put multiple widgets onto one widget.

\$\endgroup\$
4
  • \$\begingroup\$ I'll take a look, thanks! \$\endgroup\$ Commented Sep 20, 2020 at 15:10
  • 1
    \$\begingroup\$ As soon as I put an overlay on the child widget all inherited stuff goes... \$\endgroup\$ Commented Oct 23, 2020 at 13:59
  • \$\begingroup\$ You need to wrap everything with the overlay. Right click on your top component, choose wrap with a select overlay. \$\endgroup\$
    – Stephen
    Commented Oct 29, 2020 at 8:08
  • \$\begingroup\$ I'm not able to make it work, even with overlay, adding item into the child hierarchy fully removes the parent's. \$\endgroup\$
    – ATX
    Commented Apr 30, 2022 at 22:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .