hi
i'm trying to catch double click event on the axis. So I inherit QCustomPlot class i installed even filter on the xAxis.
xAxis->installEventFilter(this);
But eventFilter is not executed at all. Mouse events are not filtered.
bool MyPlot::eventFilter(QObject *obj, QEvent *e) { qDebug("evenrFilter"); if (obj == (QObject*)xAxis) { qDebug("axis"); if (e->type() == QEvent::MouseButtonDblClick) { qDebug("double click"); return true; } else { return false; } } else { return QCustomPlot::eventFilter(obj, e); } }