QContextMenuEvent

class PyQt5.QtGui.QContextMenuEvent

C++ documentation