Qt Quick Test C++ API

Provides macros and functions for tests. More...

Namespaces

QQuickTest

Contains all the functions and macros related to Qt Quick Test

Detailed Description

The C++ macros and functions can be included into your application using the following include statement:

#include <QtQuickTest>

There are two ways to link against the corresponding C++ library. If your test project uses a QML TestCase, you should already have the following line in your project file:

CONFIG += qmltestcase

This will cause the test to link to the C++ QtQuickTest library.

If you have a C++-only test project, you can add the following line to your project file:

QT += qmltest

See also Executing C++ Before QML Tests.

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