The QtTest 模块提供用于单元测试 Qt 应用程序和库的类。 更多...
| QTest | Contains all the functions and declarations that are related to the QTestLib tool |
| QSignalSpy | 启用信号发出自省 |
| QTest::QTouchEventSequence | 用于模拟一系列触摸事件 |
| QTestEventList | GUI 事件列表 |
Applications that use Qt's unit testing classes need to be configured to be built against the QtTest module. To include the definitions of the module's classes, use the following directive:
#include <QtTest>
要链接到模块,添加此行到
qmake
.pro
文件:
CONFIG += qtestlib
见 QTestLib Manual for a detailed introduction on how to use Qt's unit testing features with your applications.
The QtTest module is part of all Qt editions .