How can i define a daughter widget ?

Hi,

I have defined a mother widget (mainly a close button + a vertical box to use as a container).

All i have to do is populate the vertical box.

This works very well but the populating code is in my hud class, which is not pleasant.

Moreover, the delegates i call from within the slots have to be referenced in the mother widget.

It all works very well but the code is dirty, many things aren’t where they should be.

That would be the perfect time to define a daughter widget that could handle the specialized delegates and the populating code.

My tries have so far been unsuccessful.

When making the daughter inherit from the mother (which itself inherits from SCompoundWidget), i keep getting a base class undefined error (i double checked my headers, all seems correct, and VS is recognizing the mother class).

Somehow the slate classes are different (no constructor, and this bizarre construct method + macros).

I am not skilled in c++ or ue4 enough to figure out this by myself.

Anyone could help me defining a daughter widget on maybe point me to another strategy ?

Thanks

Cedric