QSessionManager

class PyQt5.QtGui.QSessionManager

C++ documentation