Take advantage of QWidget::window()