QtBase  v6.3.1
Functions
main.cpp File Reference
#include <QSharedMemory>
#include <QStringList>
#include <QDebug>
#include <QTest>
#include <stdio.h>
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

void set (QSharedMemory &sm, int pos, char value)
 
QChar get (QSharedMemory &sm, int i)
 
int readonly_segfault ()
 
int producer ()
 
int consumer ()
 
int main (int argc, char *argv[])
 [1] More...
 

Function Documentation

◆ consumer()

int consumer ( )

Definition at line 128 of file main.cpp.

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

◆ get()

QChar get ( QSharedMemory sm,
int  i 
)

Definition at line 40 of file main.cpp.

◆ main()

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

[1]

[5]

[2]

[6]

[1]

[1]

[5] [5] //! [6]

[1]

[9] //! [10] [9] //! [11]

[1]

[5]

[main program] [first part]

[1]

[6]

[1]

[3]

[1]

[4]

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.

Note that we only want to read the filenames in the highest level of the directory, so we supply a default (invalid) QModelIndex to the model in order to indicate that we want top-level items.

[1]

The main function for the string list model example. 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]

[1] //! [2]

[2]

[update-ui]

[update-ui]

[init]

[init]

[connect-price-changed]

[connect-price-changed]

[connect-validity-changed]

[connect-validity-changed]

[connect-user]

[connect-user]

[Connect button signals]

[Connect button signals]

[0] [1]

[main start] //! [register meta-type for queued communications]

[register meta-type for queued communications]

[main finish]

[printing a custom type]

[printing a custom type]

[storing a custom value]

[storing a custom value]

[retrieving a custom value]

[retrieving a custom value]

[1]

[1]

[0]

[0]

[1]

[1]

[adding a corner anchor]

[adding a corner anchor]

[adding anchors]

[adding anchors]

[adding anchors to match sizes]

[adding anchors to match sizes]

[0]

[1]

[1] //! [2]

[2]

[3]

[create, position and show]

[create, position and show]

[first part]

[set up the model]

[set up the model] [last part]

[create, resize and show]

[create, resize and show]

[create, lay out widgets and show]

[create, lay out widgets and show]

[0]

[0]

[1]

[1]

[2]

[2]

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

[0]

[0]

[1]

[1]

[2]

[2]

[Window class using revision]

[Window class using revision]

[0]

[0]

[0]

[0]

[1]

[1]

[2]

[2]

[0]

[0]

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

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

[0]

[1]

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

[3]

[3]

[1]

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

[2]

[4]

[3] //! [4]

[5]

[0]

[0]

[0]

[0]

Definition at line 178 of file main.cpp.

Here is the call graph for this function:

◆ producer()

int producer ( )

Definition at line 56 of file main.cpp.

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

◆ readonly_segfault()

int readonly_segfault ( )

Definition at line 45 of file main.cpp.

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

◆ set()

void set ( QSharedMemory sm,
int  pos,
char  value 
)

Definition at line 35 of file main.cpp.

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