QtTest 模块

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 .