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

(b956fec7eed57713faa5736917661280e5cec16c)

#include <QCoreApplication>
#include <QDebug>
#include <QVariant>
+ Include dependency graph for customtypeexample.cpp:

Go to the source code of this file.

Classes

struct  Message
 [custom type definition] More...
 

Functions

 Q_DECLARE_METATYPE (Message)
 [custom type definition]
 
QDebug operator<< (QDebug dbg, const Message &message)
 [custom type meta-type declaration]
 
int main (int argc, char *argv[])
 [getter functions]
 

Function Documentation

◆ main()

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

[getter functions]

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

Definition at line 67 of file customtypeexample.cpp.

References app, qDebug, and QVariant::setValue().

+ Here is the call graph for this function:

◆ operator<<()

QDebug operator<< ( QDebug dbg,
const Message & message )

[custom type meta-type declaration]

[custom type streaming operator declaration]

[custom type streaming operator]

Definition at line 40 of file customtypeexample.cpp.

References Qt::SkipEmptyParts.

◆ Q_DECLARE_METATYPE()

Q_DECLARE_METATYPE ( Message )

[custom type definition]

[custom type meta-type declaration]