I want to have a right click menu from which i can rename, delete or open the selected image in QTableView from cells.

Here is what I have so f
Qt Code:
  1. def _connections(self):
  2. self.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
  3. self.connect(self, QtCore.SIGNAL(self.customContextMenuRequested(QtCore.QPoint)), self, QtCore.SLOT(displayMenu(QtCore.QPoint)))
  4. if self._slideShowWin:
  5. self._slideShowWin.bar.galrBtn.clicked[bool].connect(self._openSlideShow)
  6.  
  7. def displayMenu(self, pos):
  8. self.menu = QtGui.QMenu()
  9. self.menu.addAction(self.close)
  10. self.menu.exec_(self.mapToGlobal(event.pos()))
To copy to clipboard, switch view to plain text mode 


But keep getting the error saying
self.connect(self, QtCore.SIGNAL(self.customContextMenuRequested(QtCo re.QPoint)), self, QtCore.SLOT(displayMenu(QtCore.QPoint)))
TypeError: native Qt signal is not callable