How to set the widget class to none in c++

What’s the difference between SetWidget and SetWidgetClass?