title: Which QLabel was pressed by mousePressEvent
body: <p>How can I get in method <code>on_product_clicked</code> where QLabel is a <code>mousePressEvent</code>? </p>
  
  <p>In the current example I see three images in the form. When I click the second image I need to have number 2 in the <code>on_product_clicked</code> method.</p>
  
  <pre><code>    product_images = ['first_icon.png', 'second_icon.png', 'third_icon.png']
  
      self.vbox_choice_img = QHBoxLayout()
      for image in product_images:
          label = QLabel()
          pixmap = QtGui.QPixmap(image)
          pixmap = pixmap.scaled(250, 250)
          label.setPixmap(pixmap)
          label.setAlignment(QtCore.Qt.AlignHCenter)
          label.mousePressEvent = self.on_product_clicked
          self.vbox_choice_img.addWidget(label)
  
  
  def on_product_clicked(self, event, &lt;WHICH_QLABEL_WAS_CLICKED&gt;):
      pass
  </code></pre>
  
  <p>I used "self" in the example because it is a code from class.</p>