QPaintEvent

class PyQt5.QtGui.QPaintEvent

C++ documentation