I have a QLabel and I'm displaying an image on it.
I'll get coordinate when I clicked on Qlabel.
There is some stars on my picture and I most find those coordinates.
How can I do it?
I hold images paths on a QListWidget named listWidgetPhoto. And when I clicked on listWidgetPhoto displayImage() will work.

Qt Code:
  1. def displayImage(self):
  2.  
  3. imagePath=self.listWidgetPhoto.currentItem()
  4. print(imagePath.text())
  5. self.label.setPixmap(QtGui.QPixmap(_fromUtf8(imagePath.text())))
To copy to clipboard, switch view to plain text mode 

  1. My sys.version output:
    2.7.3 (default, Aug 1 2012, 05:16:07)
    [GCC 4.6.3]
  2. My OS:
    bq. Ubuntu
    Release 12.04 (precise) 32-bit