Use the right parent class for QWidget::event.