Sorry, you are right, I forgot QPixmap is not a QWidget, so you don't have mousePressEvent().
So just to the same to the QLabel.
QLabel is a QWidget so you can catch the mouse press on it.
You can then either use QPixmap or QImage to extract the pixel data.
QImage should be faster for pixel access.