单击后显示图片单击Dialog界面后,获得单击点的坐标同时将Debug/images/red.jpg显示在单击点的位置[解决办法]connect(this,SIGNAL(signal()),this,SLOT(function()));void MyDlg::mousePressEvent(QMouseEvent *e){ int x = e->x(); int y = e->y(); emit signal();}