The QEventLoop class, part of the Qt framework, provides a means of entering and leaving an event loop.