Mouse click events include click coordinates that are relative to the QWidget
window in which the click occurred.
Assuming that the widget is displaying an image (i.e. the QWidget
contains a QLabel
whose QPixmap
was built from a QImage
), how can the mouse click position be converted into the QImage
coordinates?