How to call a Widget function in C++

I believe your solution its in this video.