IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

Qt Quick Test C++ API

Provides macros and functions for tests.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Qt Quick Test C++ API

Provides macros and functions for tests.

Namespaces

  • QQuickTest: The QQuickTest namespace 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:

 
Sélectionnez
#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:

 
Sélectionnez
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:

 
Sélectionnez
QT += qmltest

See Also

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+