![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <QtCore/QCoreApplication>#include <QtCore/QDeadlineTimer>#include <QtCore/qdebug.h>#include <QtCore/QDir>#include <QtCore/QHash>#include <QtCore/QProcess>#include <QtCore/QProcessEnvironment>#include <QtCore/QRegularExpression>#include <QtCore/QSystemSemaphore>#include <QtCore/QThread>#include <QtCore/QXmlStreamReader>#include <QtCore/QFileInfo>#include <QtCore/QSysInfo>#include <atomic>#include <csignal>#include <functional>#include <optional>#include <unistd.h>Go to the source code of this file.
Classes | |
| struct | Options |
| struct | TestInfo |
| struct | TestRunnerSystemSemaphore |
Variables | |
| static constexpr int | HIGHEST_QTEST_EXITCODE = 127 |
| static constexpr int | EXIT_ERROR = 254 |
| static constexpr int | EXIT_NOEXITCODE = 253 |
| static constexpr int | EXIT_ANR = 252 |
| static constexpr int | EXIT_NORESULTS = 251 |
| static Options | g_options |
| static TestInfo | g_testInfo |
| TestRunnerSystemSemaphore | testRunnerLock |
Definition at line 769 of file main.cpp.
References EXIT_ANR, EXIT_NOEXITCODE, g_options, g_testInfo, and isTestExitCodeNormal().
|
static |
|
static |
|
static |
|
static |
Definition at line 90 of file main.cpp.
References g_options, Options::timeoutSecs, and Options::verbose.
|
static |
Definition at line 513 of file main.cpp.
References g_options, g_testInfo, and TestInfo::pid.
Referenced by waitForFinished().
|
static |
Definition at line 85 of file main.cpp.
References HIGHEST_QTEST_EXITCODE.
Referenced by analyseLogcat(), and main().
| int main | ( | int | argc, |
| char * | argv[] ) |
[ctor_close]
[0] [1]
[main_cpp]
[main.cpp body]
The main function for the string list model example.
Create a default directory model and, using the index-based interface to the model and some QLabel widgets, populate the window's layout with the names of objects in the directory.
[0] //! [1]
[1]
[using a custom style]
[4]
[QApplication subclass]
[2]
[21]
[getter functions]
[0]
[3]
[main]
This creates and populates a model with values from a string list then displays the contents of the model using a QListView widget. [0]
[ctor_close]
[printing a custom type]
[printing a custom type] [storing a custom value]
[storing a custom value]
[retrieving a custom value]
[retrieving a custom value]
[0]
[0] [1]
[1]
[0]
[0]
[1]
[1] [2]
[2]
[0]
[0]
[2]
[2]
[22]
[22]
[3]
[3]
[4]
[4]
[10]
[10]
[qcinfo_stream]
[qcinfo_stream]
[11]
[11]
[12]
[12]
[13]
[13]
[qcinfo_printf]
[qcinfo_printf]
[14]
[14]
[15]
[15]
[16]
[16]
[17]
[17]
[0]
[0]
[1]
[1]
[2]
[2]
[Window class using revision]
[Window class using revision]
[0]
[0]
[1]
[1]
[2]
[2]
[write output] [start stream]
[start stream]
[write element]
[write element]
[finish stream]
[finish stream] [write output]
[1]
[1]
[0]
[0]
[0]
[0] //! [1]
[1]
[0]
[0] //! [1]
[1]
[0]
[0] //! [1]
[1] //! [2]
[2]
[0]
[0]
[1]
[1]
[Adding a resource]
[Adding a resource]
[Inserting an image with a cursor]
[Inserting an image with a cursor]
[Inserting an image using HTML]
[Inserting an image using HTML]
[0]
[0] //! [1]
[1]
[1]
[2]
[2]
[3]
[0]
[1]
[1]
Definition at line 928 of file main.cpp.
References TestRunnerSystemSemaphore::acquire(), EXIT_ERROR, EXIT_NORESULTS, g_options, g_testInfo, isTestExitCodeNormal(), obtainSdkVersion(), parseOptions(), parseTestArgs(), printHelp(), processAndroidManifest(), pullResults(), TestRunnerSystemSemaphore::release(), setupStdoutLogger(), Options::showLogcatOutput, sigHandler(), stopStdoutLogger(), testExitCode(), testRunnerLock, uninstallTestPackage(), waitForFinished(), waitForLoggingStarted(), and waitForStarted().
|
static |
Definition at line 616 of file main.cpp.
References g_testInfo, and TestInfo::sdkVersion.
Referenced by main().
|
static |
Definition at line 161 of file main.cpp.
References g_options, Options::helpRequested, Options::showLogcatOutput, Options::skipAddInstallRoot, Options::timeoutSecs, and Options::verbose.
Referenced by main().
|
static |
|
static |
| void printLogcatCrash | ( | const QByteArray & | logcat | ) |
|
static |
|
static |
Definition at line 663 of file main.cpp.
References g_options, and Options::resultsPullRetries.
Referenced by main().
|
static |
|
static |
Definition at line 143 of file main.cpp.
References g_options, and Options::helpRequested.
|
static |
| void sigHandler | ( | int | signal | ) |
Definition at line 915 of file main.cpp.
References EXIT_ERROR, g_testInfo, TestRunnerSystemSemaphore::release(), and testRunnerLock.
Referenced by main().
|
static |
|
static |
Definition at line 870 of file main.cpp.
References EXIT_NOEXITCODE.
Referenced by main().
|
static |
|
static |
Definition at line 631 of file main.cpp.
References g_testInfo, and TestInfo::sdkVersion.
|
static |
|
static |
Definition at line 543 of file main.cpp.
References g_testInfo.
Referenced by main().
|
static |
Definition at line 531 of file main.cpp.
References g_testInfo, and TestInfo::pid.
Referenced by main().
|
staticconstexpr |
Definition at line 38 of file main.cpp.
Referenced by analyseLogcat().
|
staticconstexpr |
Definition at line 35 of file main.cpp.
Referenced by main(), and sigHandler().
|
staticconstexpr |
Definition at line 37 of file main.cpp.
Referenced by analyseLogcat(), and testExitCode().
|
staticconstexpr |
|
static |
Definition at line 69 of file main.cpp.
Referenced by analyseLogcat(), execCommand(), isRunning(), main(), parseOptions(), parseTestArgs(), printLogcatCrash(), processAndroidManifest(), pullResults(), setOutputFile(), setPackagePath(), setupStdoutLogger(), stopStdoutLogger(), and waitForFinished().
|
static |
Definition at line 81 of file main.cpp.
Referenced by analyseLogcat(), isRunning(), main(), obtainSdkVersion(), sigHandler(), userId(), waitForFinished(), waitForLoggingStarted(), and waitForStarted().
|
staticconstexpr |
Definition at line 33 of file main.cpp.
Referenced by isTestExitCodeNormal().
| TestRunnerSystemSemaphore testRunnerLock |
Definition at line 913 of file main.cpp.
Referenced by main(), and sigHandler().