23 if (pe->type() == QEvent::MouseButtonPress) {
24 if (static_cast<QMouseEvent*>(pe)->button() == Qt::LeftButton) {
25 QString strClassName = pobj->metaObject()->className();
26 QMessageBox::information(0,
"Class Name", strClassName);
virtual bool eventFilter(QObject *, QEvent *)
MouseFilter(QObject *pobj=0)