void xx::mousePressEvent(QMouseEvent *event)
{
if(event->button() ==Qt::LeftButton)
{
qDebug()<<"is active is clicked************";
int mouse_x = event->pos().x();
int mouse_y = event->pos().y();
QWidget *action = QApplication::widgetAt(mouse_x,mouse_y);//获取点击处的控件
QList<XxwCustomPlot*> current_obj = action->findChildren<XxwCustomPlot*>();//找到该控件下面的XxwCustomPlot对象,默认返回Qlist<XxwCustomPlot>类型
}
}