QtBase  v6.3.1
Classes | Namespaces | Typedefs | Functions | Variables
src_corelib_kernel_qmetatype.cpp File Reference
#include <deque>
#include <unordered_list>
#include <memory>
Include dependency graph for src_corelib_kernel_qmetatype.cpp:

Go to the source code of this file.

Classes

struct  MyStruct
 [0] More...
 

Namespaces

 MyNamespace
 [0]
 

Typedefs

typedef QString CustomString
 [8] More...
 

Functions

var setValue (s)
 
 if (id !=QMetaType::UnknownType)
 
 qRegisterMetaType< MyClass > ("MyClass")
 [3] More...
 
QDataStreamoperator<< (QDataStream &out, const MyClass &myObj)
 [4] More...
 
QDataStreamoperator>> (QDataStream &in, MyClass &myObj)
 
 qRegisterMetaType< CustomString > ("CustomString")
 
void someFunc ()
 [9] More...
 
QPointer< QFilefp (new QFile)
 [11] More...
 
 if (var.canConvert< QObject * >())
 

Variables

MyStruct s
 [1] More...
 
QVariant var = QVariant::fromValue(fp)
 
MyStruct s2 = var.value<MyStruct>()
 
int id = QMetaType::type("MyClass")
 [2] More...
 

Typedef Documentation

◆ CustomString

[8]

[9]

Definition at line 117 of file src_corelib_kernel_qmetatype.cpp.

Function Documentation

◆ fp()

QPointer<QFile> fp ( new  QFile)

[11]

[12]

Here is the caller graph for this function:

◆ if() [1/2]

Definition at line 86 of file src_corelib_kernel_qmetatype.cpp.

Here is the call graph for this function:

◆ if() [2/2]

if ( var.canConvert< QObject * >  ())

Definition at line 155 of file src_corelib_kernel_qmetatype.cpp.

Here is the call graph for this function:

◆ operator<<()

QDataStream& operator<< ( QDataStream out,
const MyClass myObj 
)

[4]

[6]

◆ operator>>()

QDataStream& operator>> ( QDataStream in,
MyClass myObj 
)

◆ qRegisterMetaType< CustomString >()

qRegisterMetaType< CustomString > ( "CustomString"  )
Here is the caller graph for this function:

◆ qRegisterMetaType< MyClass >()

qRegisterMetaType< MyClass > ( "MyClass"  )

[3]

[4]

◆ setValue()

var setValue ( s  )

◆ someFunc()

void someFunc ( )

[9]

[12]

[10]

[11]

[13]

Definition at line 127 of file src_corelib_kernel_qmetatype.cpp.

Here is the call graph for this function:

Variable Documentation

◆ id

id = QMetaType::type("MyClass")

[2]

[6]

[3]

[7]

[8]

Definition at line 85 of file src_corelib_kernel_qmetatype.cpp.

◆ s

[1]

[2]

Definition at line 73 of file src_corelib_kernel_qmetatype.cpp.

◆ s2

Definition at line 80 of file src_corelib_kernel_qmetatype.cpp.

◆ var

Definition at line 74 of file src_corelib_kernel_qmetatype.cpp.