Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qt6-changes.qdoc
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5 \page testlib-changes-qt6.html
6 \title Changes to Qt Test
7 \ingroup changes-qt-5-to-6
8 \brief Touch-related functionality changes.
9
10 Qt 6 is a result of the conscious effort to make the framework more
11 efficient and easy to use.
12
13 We try to maintain binary and source compatibility for all the public
14 APIs in each release. But some changes were inevitable in an effort to
15 make Qt a better framework.
16
17 In this topic we summarize those changes in Qt Test, and provide
18 guidance to handle them.
19
20 \section1 Touch-related functionality
21
22 \section2 The QTouchEventSequence class
23
24 QTest::QTouchEventSequence functions taking a QWidget parameter has been moved
25 to a new class: QTest::QTouchEventWidgetSequence. The list of affected
26 functions is as follows:
27
28 \list
29 \li QTest::QTouchEventSequence::press(int touchId, const QPoint &pt, QWidget *widget)
30 \li QTest::QTouchEventSequence::move(int touchId, const QPoint &pt, QWidget *widget)
31 \li QTest::QTouchEventSequence::release(int touchId, const QPoint &pt, QWidget *widget)
32 \endlist
33
34 On that same note, the overload of QTest::touchEvent() taking a QWidget
35 parameter has been changed to return a QTouchEventWidgetSequence object.
36
37*/