void CQImageView:: mousePressEvent(QMouseEvent *e) { int x = e->pos().x(); int y = e->pos().y(); pressX_ = x; pressY_ = y; int ix, iy; if (view_.pixelToImage(x, y, ix, iy)) emit imageMousePress(ix, iy); pressed_ = true; }
void ImageWindow::mousePressEvent(QMouseEvent *) { if (m_avData) emit imageMousePress(m_name); }