In questa pagina

Modifiche apportate a Qt Test

Qt 6 sono il risultato di uno sforzo mirato a rendere il framework più efficiente e facile da usare.

Cerchiamo di mantenere la compatibilità binaria e del codice sorgente per tutte le API pubbliche in ogni versione. Tuttavia, alcune modifiche erano inevitabili nell’ottica di rendere Qt un framework migliore.

In questa sezione riassumiamo tali modifiche in Qt Test e forniamo indicazioni su come gestirle.

La classe QTouchEventSequence

QTest::QTouchEventSequence che accettano un parametro di tipo ` QWidget ` sono state spostate in una nuova classe: ` QTest::QTouchEventWidgetSequence`. L’elenco delle funzioni interessate è il seguente:

Allo stesso modo, il sovraccarico di ` QTest::touchEvent()` che accetta un parametro ` QWidget ` è stato modificato per restituire un oggetto `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.