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
main.cpp File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

#include <QtCore>
#include <QByteArray>
#include <QDataStream>
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Classes

struct  Movie
 [0] More...
 

Functions

QDataStreamoperator<< (QDataStream &out, const Movie &movie)
 [0]
 
QDataStreamoperator>> (QDataStream &in, Movie &movie)
 [1]
 
int main (int argc, char *argv[])
 [2]
 

Function Documentation

◆ main()

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

[2]

[3]

[2]

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

[0]

[0]

[1]

[1]

[2]

[2]

[0]

[0]

[write output] [start stream]

[start stream]

[write element]

[write element]

[finish stream]

[finish stream] [write output]

Definition at line 39 of file main.cpp.

References app, Movie::id, qDebug, and QIODeviceBase::WriteOnly.

◆ operator<<()

QDataStream & operator<< ( QDataStream & out,
const Movie & movie )

[0]

[1]

Definition at line 18 of file main.cpp.

References Movie::id, out, Movie::releaseDate, and Movie::title.

◆ operator>>()

QDataStream & operator>> ( QDataStream & in,
Movie & movie )

[1]

[2]

Definition at line 27 of file main.cpp.

References date, Movie::id, Movie::releaseDate, and Movie::title.