1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
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.
10 Qt 6 is a result of the conscious effort to make the framework more
11 efficient and easy to use.
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.
17 In this topic we summarize those changes in Qt Test, and provide
18 guidance to handle them.
20 \section1 Touch-related functionality
22 \section2 The QTouchEventSequence class
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:
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)
34 On that same note, the overload of QTest::touchEvent() taking a QWidget
35 parameter has been changed to return a QTouchEventWidgetSequence object.