The parent is already given to your constructor, so just store it somewhere?

Alternatively, you can use parentWidget()