void AebWidget::mousePressEvent(QMouseEvent *event) { QWidget *child = childAt(event->pos()); //获取点击的控件指针 }