7#include <QtCore/qobject.h>
8#include <QtCore/qdeadlinetimer.h>
27 ExcludeUserInputEvents = 0x01,
28 ExcludeSocketNotifiers = 0x02,
29 WaitForMoreEvents = 0x04,
30 X11ExcludeTimers = 0x08,
33 ApplicationExec = 0x80,
38 bool processEvents(ProcessEventsFlags
flags = AllEvents);
39 void processEvents(ProcessEventsFlags
flags,
int maximumTime);
42 int exec(ProcessEventsFlags
flags = AllEvents);
50 void exit(
int returnCode = 0);
56class QEventLoopLockerPrivate;
67 :
p{std::exchange(
other.p, 0)} {}
69 {
auto moved = std::move(
other);
swap(moved);
return *
this; }
89 static constexpr quintptr TypeMask = 0x3;
91 void *
pointer()
const {
return reinterpret_cast<void *
>(
p & ~TypeMask); }
92 template <
typename Func>
93 void visit(Func
func)
const;
Q_NODISCARD_CTOR QEventLoopLocker(QEventLoopLocker &&other) noexcept
Q_NODISCARD_CTOR Q_CORE_EXPORT QEventLoopLocker() noexcept
Creates an event locker operating on the QCoreApplication.
friend void swap(QEventLoopLocker &lhs, QEventLoopLocker &rhs) noexcept
Q_CORE_EXPORT ~QEventLoopLocker()
Destroys this event loop locker object.
void swap(QEventLoopLocker &other) noexcept
friend class QEventLoopLockerPrivate
QEventLoopLocker & operator=(QEventLoopLocker &&other) noexcept
ProcessEventsFlag
This enum controls the types of events processed by the processEvents() functions.
Combined button and popup list for selecting options.
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
static ControlElement< T > * ptr(QWidget *widget)
GLsizei const void * pointer
QDeadlineTimer deadline(30s)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent