Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
main.cpp File Reference

(e174bbb7ab3d807a39b15f9ec1084b5e751b8d2c)

#include "tracer.h"
#include <QtCore/QDir>
#include <QtCore/QFileInfo>
#include <QtCore/QLibraryInfo>
#include <QtCore/QLocale>
#include <QtCore/QScopedPointer>
#include <QtCore/QStringList>
#include <QtCore/QTranslator>
#include <QtCore/QUrl>
#include <QtWidgets/QApplication>
#include <QtGui/QDesktopServices>
#include <QtHelp/QHelpEngine>
#include <QtHelp/QHelpSearchEngine>
#include <QtSql/QSqlDatabase>
#include "../shared/collectionconfiguration.h"
#include "helpenginewrapper.h"
#include "mainwindow.h"
#include "cmdlineparser.h"
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Enumerations

enum  ExitStatus {
  ExitSuccess = 0 , ExitFailure , NoExit , ExitSuccess = 0 ,
  ExitFailure , NoExit
}
 
enum  ExitStatus {
  ExitSuccess = 0 , ExitFailure , NoExit , ExitSuccess = 0 ,
  ExitFailure , NoExit
}
 

Functions

static ExitStatus preliminarySetup (CmdLineParser *cmd)
 
int main (int argc, char *argv[])
 [2]
 

Enumeration Type Documentation

◆ ExitStatus [1/2]

enum ExitStatus
Enumerator
ExitSuccess 
ExitFailure 
NoExit 
ExitSuccess 
ExitFailure 
NoExit 

Definition at line 235 of file main.cpp.

◆ ExitStatus [2/2]

enum ExitStatus
Enumerator
ExitSuccess 
ExitFailure 
NoExit 
ExitSuccess 
ExitFailure 
NoExit 

Definition at line 235 of file main.cpp.

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

[2]

[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]

[QApplication subclass]

[21]

[getter functions]

[0]

[3]

[4]

This creates and populates a model with values from a string list then displays the contents of the model using a QListView widget. [0]

[0] [1]

[3]

[2]

[2]

[4]

[2]

This creates and populates a model with values from a string list then displays the contents of the model using a QListView widget. [0]

[0] [1]

[printing a custom type]

[printing a custom type] [storing a custom value]

[storing a custom value]

[retrieving a custom value]

[retrieving a custom value]

[printing a custom type]

[printing a custom type] [storing a custom value]

[storing a custom value]

[retrieving a custom value]

[retrieving a custom value]

[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]

[0]

[0]

[1]

[1] [2]

[2]

[0]

[0]

[1]

[1] [2]

[2]

[0]

[0]

[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]

[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]

[0]

[0]

[1]

[1]

[2]

[2]

[Window class using revision]

[Window class using revision]

[Window class using revision]

[Window class using revision]

[0]

[0]

[0]

[0]

[0]

[0]

[1]

[1]

[2]

[2]

[0]

[0]

[1]

[1]

[2]

[2]

[0]

[0]

[0]

[0]

[write output] [start stream]

[start stream]

[write element]

[write element]

[finish stream]

[finish stream] [write output]

[write output] [start stream]

[start stream]

[write element]

[write element]

[finish stream]

[finish stream] [write output]

[1]

[1]

[1]

[1]

[0]

[0]

[0]

[0]

[0]

[0] //! [1]

[1]

[0]

[0] //! [1]

[1]

[0]

[0] //! [1]

[1]

[0]

[0] //! [1]

[1]

[0]

[0] //! [1]

[1] //! [2]

[2]

[0]

[0] //! [1]

[1] //! [2]

[2]

[0]

[0]

[1]

[1]

[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]

[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]

[0]

[0] //! [1]

[1]

[0]

[0] //! [1]

[1]

[2]

[2]

[3]

[3]

[4]

[4]

[0]

[0] //! [1]

[1]

[2]

[2]

[3]

[3]

[4]

[4]

[0]

[0] //! [1]

[1] //! [2]

[2]

[3]

[3] //! [4]

[4]

[5]

[5]

[6]

[6] //! [7]

[7] //! [8]

[8]

[9]

[9] //! [10]

[10]

[11]

[11]

[12]

[12] //! [13]

[13] //! [14]

[14]

[15]

[15] //! [16]

[16]

[17]

[17]

[18]

[18] [19]

[19] [20]

[20] [21]

[21] [22]

[22]

[23]

[23]

[24]

[24]

[0]

[0] //! [1]

[1] //! [2]

[2]

[3]

[3] //! [4]

[4]

[5]

[5]

[6]

[6] //! [7]

[7] //! [8]

[8]

[9]

[9] //! [10]

[10]

[11]

[11]

[12]

[12] //! [13]

[13] //! [14]

[14]

[15]

[15] //! [16]

[16]

[17]

[17]

[18]

[18] [19]

[19] [20]

[20] [21]

[21] [22]

[22]

[23]

[23]

[24]

[24]

[0]

[0]

[1]

[1]

[0]

[0]

[1]

[1]

[0]

[1]

[0]

[1]

[2] //! [3]

[0] //! [2] //! [4] //! [5]

[3] //! [6]

[4] //! [6] //! [7]

[7]

[5]

[8]

[2] //! [3]

[0] //! [2] //! [4] //! [5]

[3] //! [6]

[4] //! [6] //! [7]

[7]

[5]

[8]

[0]

[0]

[1]

[1]

[2]

[2]

[0]

[0]

[1]

[1]

[2]

[2]

[0]

[1]

[1]

[2]

[2]

[3]

[3]

[0]

[0]

[1]

[1]

[2]

[2]

[3]

[3]

[0]

[1]

[0] //! [1] //! [2] //! [3]

[2]

[4]

[3] //! [4]

[5]

[1]

[0] //! [1] //! [2] //! [3]

[2]

[4]

[3] //! [4]

[5]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[QQuickView]

[QQuickView]

[properties]

[properties]

[cast]

[cast]

[findChild]

[findChild]

[QQmlComponent-b]

[QQmlComponent-b]

[QQuickView]

[QQuickView]

[properties]

[properties]

[cast]

[cast]

[findChild]

[findChild]

[QQmlComponent-b]

[QQmlComponent-b]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[1]

[2]

[1]

[2]

[Media Audio Input Device Enumeration]

[Media Audio Input Device Enumeration]

[Media Video Input Device Enumeration]

[Media Video Input Device Enumeration]

[Media Audio Input Device Enumeration]

[Media Audio Input Device Enumeration]

[Media Video Input Device Enumeration]

[Media Video Input Device Enumeration]

Definition at line 338 of file main.cpp.

References preliminarySetup(), and HelpEngineWrapper::removeInstance().

+ Here is the call graph for this function:

◆ preliminarySetup()

static ExitStatus preliminarySetup ( CmdLineParser * cmd)
static

Definition at line 241 of file main.cpp.

References CollectionConfiguration::copyConfiguration(), ExitFailure, ExitSuccess, CollectionConfiguration::isNewer(), NoExit, CmdLineParser::None, CmdLineParser::Register, CmdLineParser::registerRequest(), CmdLineParser::removeSearchIndex(), and CmdLineParser::Unregister.

Referenced by main().

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