Ok, guys I found it. I just understood what you meant.

I was actually confused, because when you said that I have to pass it to the base class, for some stupid reason, I thought you meant as base class the widget in which I have as a child my class.

Thank you for your help.