使用QCustomPlot做曲线图时,发现点击事件都无效。怎么解决
void QHisCurv::mousePressEvent(QMouseEvent *event)
{
//movePoint = event->pos();
////QPixmap temPixmap = inertPixmap;
////QPainter painter(&temPixmap);
//bDrawMousePresse = true;
//update();
////pixmap = temPixmap;
////repaint();
QMessageBox::information(this,"提示信息","QCustomPlot被点击");
}