I don't understand what the BaseWidget is. It looks to me like in:

QWidget *widget = this->buildWidget(this->getParentWidget());

widget is a pointer to the coinWidget class/object? So

this->setBaseWidget(widget);

is setting baseWidget to the coinWidget? I don't know what a getter is.