本页内容

Qt Quick Test QML Types

您可以使用以下语句导入该模块:

import QtTest

QML 类型

SignalSpy

支持对信号发出的内省

TestCase

表示一个单元测试用例

TouchEventSequence

用于构建和分发触摸事件以进行测试

有关如何使用这些类型的更多信息,请参阅 Qt Quick Test。

© 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.