I would like to know how i can select a pixel with a mouse click in an image (QImge) and get pixel position and value.
Thanks
self.image = QLabel() self.image.setPixmap(QPixmap("C:\\myImg.jpg")) self.image.setObjectName("image") self.image.mousePressEvent = self.getPos def getPos(self , event): x = event.pos().x() y = event.pos().y()