Qt Quick Test QML Types

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

import QtTest

QML 类型

SignalSpy

启用信号发射自省

TestCase

代表单元测试用例

TouchEventSequence

用于构建和调度触摸事件以进行测试

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

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