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

Yes.