QUndoCommand

class PyQt5.QtWidgets.QUndoCommand

C++ documentation