How to create a Widget without Blueprints, only with C++

Hi,

I want to create a C++ class which defines a widget, and add some of the default Widgets like UImage as children. All tutorials on the topic say I have to extend UUSerWidget in C++, then create a Blueprint which extends my C++ class to add child widgets. Is there come way i can add the child widgets in C++? I have found one thread on the topic, but it is an absolute mess without a clear solution. Thread