Cambios en Qt Test
Qt 6 son el resultado de un esfuerzo deliberado por hacer que el marco de trabajo sea más eficiente y fácil de usar.
Intentamos mantener la compatibilidad binaria y de código fuente para todas las API públicas en cada versión. Sin embargo, algunos cambios eran inevitables para conseguir que Qt sea un marco de trabajo mejor.
En este tema resumimos esos cambios en Qt Test y ofrecemos orientación para gestionarlos.
Funcionalidad relacionada con el tacto
La clase QTouchEventSequence
QTest::QTouchEventSequence que aceptaban un parámetro de tipo ` QWidget ` se han trasladado a una nueva clase: ` QTest::QTouchEventWidgetSequence`. La lista de funciones afectadas es la siguiente:
- QTest::QTouchEventSequence::press(int touchId, const QPoint &pt, QWidget *widget)
- QTest::QTouchEventSequence::move(int touchId, const QPoint &pt, QWidget *widget)
- QTest::QTouchEventSequence::release(int touchId, const QPoint &pt, QWidget *widget)
En la misma línea, se ha modificado la sobrecarga de ` QTest::touchEvent()` que toma un parámetro ` QWidget ` para que devuelva un objeto `QTouchEventWidgetSequence`.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.