Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qtestsupport_widgets.h
Go to the documentation of this file.
1
// Copyright (C) 2018 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QTESTSUPPORT_WIDGETS_H
6
#
define
QTESTSUPPORT_WIDGETS_H
7
8
#
include
<
QtWidgets
/
qtwidgetsglobal
.
h
>
9
#
include
<
QtGui
/
qtestsupport_gui
.
h
>
10
11
QT_BEGIN_NAMESPACE
12
13
class
QPointingDevice;
14
class
QWidget
;
15
16
namespace
QTest
{
17
18
[[
nodiscard
]]
Q_WIDGETS_EXPORT
bool
qWaitForWindowActive
(
QWidget
*widget,
int
timeout);
19
[[
nodiscard
]]
Q_WIDGETS_EXPORT
bool
qWaitForWindowActive
(
QWidget
*widget, QDeadlineTimer timeout);
20
[[
nodiscard
]]
Q_WIDGETS_EXPORT
bool
qWaitForWindowActive
(
QWidget
*widget);
21
22
[[
nodiscard
]]
Q_WIDGETS_EXPORT
bool
qWaitForWindowFocused
(
QWidget
*widget, QDeadlineTimer timeout);
23
[[
nodiscard
]]
Q_WIDGETS_EXPORT
bool
qWaitForWindowFocused
(
QWidget
*widget);
24
25
[[
nodiscard
]]
Q_WIDGETS_EXPORT
bool
qWaitForWindowExposed
(
QWidget
*widget,
int
timeout);
26
[[
nodiscard
]]
Q_WIDGETS_EXPORT
bool
qWaitForWindowExposed
(
QWidget
*widget, QDeadlineTimer timeout);
27
[[
nodiscard
]]
Q_WIDGETS_EXPORT
bool
qWaitForWindowExposed
(
QWidget
*widget);
28
29
class
Q_WIDGETS_EXPORT
QTouchEventWidgetSequence
:
public
QTouchEventSequence
30
{
31
public
:
32
~
QTouchEventWidgetSequence
()
override
;
33
QTouchEventWidgetSequence
&
press
(
int
touchId
,
const
QPoint
&
pt
,
QWidget
*
widget
=
nullptr
);
34
QTouchEventWidgetSequence
&
move
(
int
touchId
,
const
QPoint
&
pt
,
QWidget
*
widget
=
nullptr
);
35
QTouchEventWidgetSequence
&
release
(
int
touchId
,
const
QPoint
&
pt
,
QWidget
*
widget
=
nullptr
);
36
QTouchEventWidgetSequence
&
stationary
(
int
touchId
)
override
;
37
38
bool
commit
(
bool
processEvents
=
true
)
override
;
39
40
private
:
41
QTouchEventWidgetSequence
(
QWidget
*
widget
,
QPointingDevice
*
aDevice
,
bool
autoCommit
);
42
43
QPointF
mapToScreen
(
QWidget
*
widget
,
const
QPoint
&
pt
);
44
45
QWidget
*
targetWidget
=
nullptr
;
46
47
friend
QTouchEventWidgetSequence
touchEvent
(
QWidget
*
widget
,
QPointingDevice
*
device
,
bool
autoCommit
);
48
};
49
50
}
// namespace QTest
51
52
QT_END_NAMESPACE
53
54
#
endif
QPainter::QWidget
friend class QWidget
Definition
qpainter.h:432
QTest::QTouchEventWidgetSequence
Definition
qtestsupport_widgets.h:30
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QTest
[15]
Definition
qtestsupport_core.h:15
QTest::qWaitForWindowExposed
Q_WIDGETS_EXPORT bool qWaitForWindowExposed(QWidget *widget)
Definition
qtestsupport_widgets.cpp:163
QTest::qWaitForWindowFocused
Q_WIDGETS_EXPORT bool qWaitForWindowFocused(QWidget *widget, QDeadlineTimer timeout)
Definition
qtestsupport_widgets.cpp:105
QTest::qWaitForWindowFocused
Q_WIDGETS_EXPORT bool qWaitForWindowFocused(QWidget *widget)
Definition
qtestsupport_widgets.cpp:119
QTest::qWaitForWindowExposed
Q_WIDGETS_EXPORT bool qWaitForWindowExposed(QWidget *widget, int timeout)
Definition
qtestsupport_widgets.cpp:130
QTest::qWaitForWindowActive
Q_WIDGETS_EXPORT bool qWaitForWindowActive(QWidget *widget)
Definition
qtestsupport_widgets.cpp:84
QTest::qWaitForWindowActive
Q_WIDGETS_EXPORT bool qWaitForWindowActive(QWidget *widget, int timeout)
Definition
qtestsupport_widgets.cpp:42
qtbase
src
widgets
kernel
qtestsupport_widgets.h
Generated on
for Qt by
1.18.0