Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQuickVisualTestUtils::QQuickApplicationHelper Class Reference

#include <visualtestutils_p.h>

+ Inheritance diagram for QQuickVisualTestUtils::QQuickApplicationHelper:
+ Collaboration diagram for QQuickVisualTestUtils::QQuickApplicationHelper:

Public Member Functions

 QQuickApplicationHelper (QQmlDataTest *testCase, const QString &testFilePath, const QVariantMap &initialProperties={}, const QStringList &qmlImportPaths={})
 
const char * failureMessage () const
 

Public Attributes

QQmlEngine engine
 
QScopedPointer< QObjectcleanup
 
QQuickWindowwindow = nullptr
 
bool ready = false
 
QByteArray errorMessage
 

Detailed Description

Definition at line 181 of file visualtestutils_p.h.

Constructor & Destructor Documentation

◆ QQuickApplicationHelper()

QQuickVisualTestUtils::QQuickApplicationHelper::QQuickApplicationHelper ( QQmlDataTest * testCase,
const QString & testFilePath,
const QVariantMap & initialProperties = {},
const QStringList & qmlImportPaths = {} )

Definition at line 204 of file visualtestutils.cpp.

References component(), engine, errorMessage(), QString::fromUtf8(), qPrintable, QVERIFY2, and window().

+ Here is the call graph for this function:

Member Function Documentation

◆ failureMessage()

const char * QQuickVisualTestUtils::QQuickApplicationHelper::failureMessage ( ) const
inline

Definition at line 190 of file visualtestutils_p.h.

References QByteArray::constData(), and errorMessage.

+ Here is the call graph for this function:

Member Data Documentation

◆ cleanup

QScopedPointer<QObject> QQuickVisualTestUtils::QQuickApplicationHelper::cleanup

◆ engine

QQmlEngine QQuickVisualTestUtils::QQuickApplicationHelper::engine

Definition at line 195 of file visualtestutils_p.h.

◆ errorMessage

◆ ready

◆ window


The documentation for this class was generated from the following files: