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
quicktest.h File Reference

(fb0ee24b9f9268b4cb76be0860841f3f6ffaa988)

#include <QtQuickTest/quicktestglobal.h>
#include <QtTest/qtest.h>
+ Include dependency graph for quicktest.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  QQuickTest
 

Macros

#define QUICK_TEST_MAIN(name)
 
#define QUICK_TEST_OPENGL_MAIN(name)
 
#define QUICK_TEST_MAIN_WITH_SETUP(name, QuickTestSetupClass)
 

Functions

Q_QMLTEST_EXPORT int quick_test_main (int argc, char **argv, const char *name, const char *sourceDir)
 
Q_QMLTEST_EXPORT int quick_test_main_with_setup (int argc, char **argv, const char *name, const char *sourceDir, QObject *setup)
 
Q_QMLTEST_EXPORT bool QQuickTest::qIsPolishScheduled (const QQuickItem *item)
 
Q_QMLTEST_EXPORT bool QQuickTest::qIsPolishScheduled (const QQuickWindow *window)
 
Q_QMLTEST_EXPORT bool QQuickTest::qWaitForPolish (const QQuickItem *item, int timeout=defaultTimeout)
 
Q_QMLTEST_EXPORT bool QQuickTest::qWaitForPolish (const QQuickWindow *window, int timeout=defaultTimeout)
 

Variables

static const int QQuickTest::defaultTimeout = 5000
 

Macro Definition Documentation

◆ QUICK_TEST_MAIN

#define QUICK_TEST_MAIN ( name)
Value:
int main(int argc, char **argv) \
{ \
QTEST_SET_MAIN_SOURCE_PATH \
return quick_test_main(argc, argv, #name, nullptr); \
}
int main()
[0]
GLuint name
Q_QMLTEST_EXPORT int quick_test_main(int argc, char **argv, const char *name, const char *sourceDir)

Definition at line 44 of file quicktest.h.

◆ QUICK_TEST_MAIN_WITH_SETUP

#define QUICK_TEST_MAIN_WITH_SETUP ( name,
QuickTestSetupClass )
Value:
int main(int argc, char **argv) \
{ \
QTEST_SET_MAIN_SOURCE_PATH \
QuickTestSetupClass setup; \
return quick_test_main_with_setup(argc, argv, #name, nullptr, &setup); \
}
Q_QMLTEST_EXPORT int quick_test_main_with_setup(int argc, char **argv, const char *name, const char *sourceDir, QObject *setup)

Definition at line 58 of file quicktest.h.

◆ QUICK_TEST_OPENGL_MAIN

#define QUICK_TEST_OPENGL_MAIN ( name)
Value:
int main(int argc, char **argv) \
{ \
QTEST_SET_MAIN_SOURCE_PATH \
return quick_test_main(argc, argv, #name, nullptr); \
}

Definition at line 51 of file quicktest.h.

Function Documentation

◆ quick_test_main()

Q_QMLTEST_EXPORT int quick_test_main ( int argc,
char ** argv,
const char * name,
const char * sourceDir )

Definition at line 427 of file quicktest.cpp.

References quick_test_main_with_setup().

+ Here is the call graph for this function:

◆ quick_test_main_with_setup()

Q_QMLTEST_EXPORT int quick_test_main_with_setup ( int argc,
char ** argv,
const char * name,
const char * sourceDir,
QObject * setup )

Definition at line 432 of file quicktest.cpp.

References QDir::absolutePath(), app, QFileDevice::atEnd(), Qt::CaseInsensitive, QDir::cdUp(), QFileDevice::close(), QString::compare(), QObject::connect(), QDir::current(), QDir::currentPath(), QDir::dirName(), engine, QQuickView::engine(), QQuickView::Error, QQuickView::errors(), QEventLoop::exec(), QFile::exists(), QuickTestResult::exitCode(), file, QDir::Files, files, filters, QDirIterator::FollowSymlinks, QString::fromLocal8Bit(), QUrl::fromLocalFile(), QString::fromUtf8(), handleCompileErrors(), QCoreApplication::installTranslator(), QTestRootObject::instance(), QCoreApplication::instance(), iter, QQuickView::Loading, maybeInvokeSetupMethod(), QStringView::mid(), QTest::Internal::noCrashHandler, QObject::objectName, QFile::open(), QuickTestResult::parseArgs(), QGuiApplicationPrivate::platformIntegration(), QTest::CrashHandler::prepareStackTrace(), QTest::printAvailableFunctions, Q_ARG, qDebug, qPrintable, qputenv(), QStringLiteral, qUtf8Printable, QTest::qWait(), QTest::qWaitForWindowActive(), QTest::qWaitForWindowExposed(), qWarning, QIODevice::readLine(), QIODeviceBase::ReadOnly, QQuickView::rootContext(), QQmlContext::setContextProperty(), QuickTestResult::setCurrentAppname(), QObject::setObjectName(), QuickTestResult::setProgramName(), QQuickView::setSource(), QWindow::setTitle(), QWindow::show(), SIGNAL, QTimer::singleShot, SLOT, QQuickView::status, stripQuotes(), QDirIterator::Subdirectories, QTest::testFunctions, QDir::toNativeSeparators(), QString::trimmed(), view, Qt::Window, QPlatformIntegration::WindowActivation, Qt::WindowCloseButtonHint, Qt::WindowMinMaxButtonsHint, Qt::WindowSystemMenuHint, and Qt::WindowTitleHint.

Referenced by quick_test_main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: