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 .