QEventLoopLocker

class PyQt5.QtCore.QEventLoopLocker

C++ documentation