bool MainWindow::eventFilter(QObject *target, QEvent *event){ qobject_cast<QWidget*>(target)->update(); return QWidget::eventFilter(target, event);}