8#include <QtGui/qwindow.h>
9#include <QtCore/qtestsupport_core.h>
10#include <QtCore/qthread.h>
11#include <QtGui/qtestsupport_gui.h>
12#include <QtGui/private/qevent_p.h>
13#include <QtGui/private/qeventpoint_p.h>
14#include <private/qguiapplication_p.h>
15#include <qpa/qplatformintegration.h>
19template <
typename FunctorWindowGetter,
typename FunctorPredicate>
51 qWarning() <<
"qWaitForWindowActive was called on a platform that doesn't support window"
52 <<
"activation. This means there is an error in the test and it should either"
53 <<
"check for the WindowActivation platform capability before calling"
54 <<
"qWaitForWindowActivate, use qWaitForWindowExposed instead, or skip the test."
55 <<
"Falling back to qWaitForWindowExposed.";
95 QMutableEventPoint::setGlobalPosition(
p, mapToScreen(
widget, pt));
102 QMutableEventPoint::setGlobalPosition(
p, mapToScreen(
widget, pt));
109 QMutableEventPoint::setGlobalPosition(
p, mapToScreen(
widget, pt));
129 }
else if (targetWidget) {
148 return targetWidget ? targetWidget->
mapToGlobal(pt) : pt;
static void processEvents(QEventLoop::ProcessEventsFlags flags=QEventLoop::AllEvents)
Processes some pending events for the calling thread according to the specified flags.
static QPlatformIntegration * platformIntegration()
\inmodule QtCore\reentrant
The QPointingDevice class describes a device from which mouse, touch or tablet events originate.
QMap< int, QEventPoint > previousPoints
QEventPoint & pointOrPreviousPoint(int touchId)
QEventPoint & point(int touchId)
QMap< int, QEventPoint > points
static void sleep(unsigned long)
Combined button and popup list for selecting options.
Q_GUI_EXPORT bool qWaitForWindowActive(QWindow *window, int timeout=5000)
Q_GUI_EXPORT bool qWaitForWindowExposed(QWindow *window, int timeout=5000)
static bool qWaitFor(Functor predicate, QDeadlineTimer deadline=QDeadlineTimer(std::chrono::seconds{5}))
GLbitfield GLuint64 timeout
[4]
GLfixed GLfixed GLint GLint GLfixed points
Q_GUI_EXPORT bool qt_handleTouchEventv2(QWindow *w, const QPointingDevice *device, const QList< QEventPoint > &points, Qt::KeyboardModifiers mods=Qt::NoModifier)