Qt进阶-事件过滤器eventFilter的使用
ui.pushButton->installEventFilter(this); ui.pushButton_2->installEventFilter(this);bool QtTest::eventFilter(QObject *w, QEvent *e){ if (e->type() == QEvent::MouseButtonPress) { QString a = w->objectName(); int b = 1; re