Qt Test 的變化

Qt 6 是努力使框架更高效,且更易於使用的結果。

為兼容每個發行的所有公共 API,我們試著維護二進製和源代碼。但是,為使 Qt 成為更優框架,一些改變是不可避免的。

In this topic we summarize those changes in Qt Test, and provide guidance to handle them.

QTouchEventSequence 類

QTest::QTouchEventSequence functions taking a QWidget parameter has been moved to a new class: QTest::QTouchEventWidgetSequence . The list of affected functions is as follows:

On that same note, the overload of QTest::touchEvent () taking a QWidget parameter has been changed to return a QTouchEventWidgetSequence object.