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

(69d4ecd6ef9057cb3703178277042ff7a7411459)

#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

namespace  MyNamespace
 [0]
 

Typedefs

typedef QString CustomString
 [8]
 

Functions

var setValue (s)
 
 if (type.isValid())
 
 qRegisterMetaType< MyClass > ("MyClass")
 [3]
 
QDataStreamoperator<< (QDataStream &out, const MyClass &myObj)
 [4]
 
QDataStreamoperator>> (QDataStream &in, MyClass &myObj)
 
 qRegisterMetaType< CustomString > ("CustomString")
 
void someFunc ()
 [9]
 

Variables

MyStruct s
 [1]
 
QVariant var
 
MyStruct s2 = var.value<MyStruct>()
 
QMetaType type = QMetaType::fromName("MyClass")
 [2]
 
int id = qRegisterMetaType<MyStruct>()
 [6]
 

Typedef Documentation

◆ CustomString

[8]

[9]

Definition at line 70 of file src_corelib_kernel_qmetatype.cpp.

Function Documentation

◆ if()

if ( type. isValid())

Definition at line 39 of file src_corelib_kernel_qmetatype.cpp.

References QMetaType::create().

+ Here is the call graph for this function:

◆ operator<<()

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

[4]

[6]

Referenced by QT6_ONLY(), and qt_sendSpontaneousEvent().

+ Here is the caller graph for this function:

◆ operator>>()

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

◆ qRegisterMetaType< CustomString >()

qRegisterMetaType< CustomString > ( "CustomString" )

◆ qRegisterMetaType< MyClass >()

qRegisterMetaType< MyClass > ( "MyClass" )

[3]

[4]

◆ setValue()

var setValue ( s )

◆ someFunc()

void someFunc ( )

[9]

[10]

[11]

[13]

Definition at line 80 of file src_corelib_kernel_qmetatype.cpp.

References QVariant::fromValue(), and var.

+ Here is the call graph for this function:

Variable Documentation

◆ id

[6]

[7]

[8]

Definition at line 60 of file src_corelib_kernel_qmetatype.cpp.

◆ s

[1]

[2]

Definition at line 26 of file src_corelib_kernel_qmetatype.cpp.

◆ s2

Definition at line 33 of file src_corelib_kernel_qmetatype.cpp.

◆ type

[2]

[3]

Definition at line 38 of file src_corelib_kernel_qmetatype.cpp.

◆ var

QVariant var

Definition at line 27 of file src_corelib_kernel_qmetatype.cpp.

Referenced by QCtfLibImpl::QCtfLibImpl(), QDateTimeEdit::QDateTimeEdit(), QQmlImportDatabase::QQmlImportDatabase(), QScopedValueRollback< T >::QScopedValueRollback(), QWindowsAudioDeviceInfo::QWindowsAudioDeviceInfo(), DarwinBluetooth::add_attribute(), DarwinBluetooth::add_attribute(), DarwinBluetooth::add_attribute(), DarwinBluetooth::add_attribute(), DarwinBluetooth::add_attribute< QBluetoothUuid >(), DarwinBluetooth::add_attribute< QBluetoothUuid >(), DarwinBluetooth::add_attribute< QString >(), DarwinBluetooth::add_attribute< QString >(), DarwinBluetooth::add_attribute< QUrl >(), DarwinBluetooth::add_attribute< QUrl >(), DarwinBluetooth::add_attribute< unsigned short >(), DarwinBluetooth::add_sequence_attribute(), DarwinBluetooth::add_sequence_attribute(), addEndCond(), QFreeTypeFontDatabase::addNamedInstancesForFace(), addOpaqueDepthPrePassBindings(), QSSGRhiShaderPipeline::addStage(), addStartCond(), QQuickColorProvider::alpha(), QSSGQmlUtilities::asString(), MFPlayerSession::availablePlaybackRanges(), MFPlayerSession::bufferProgress(), QSSGStageGeneratorBase::buildShaderSourcePass2(), QSSGQmlUtilities::builtinQmlType(), QV4::Compiler::ScanFunctions::calcEscapingVariables(), calculateActualItalic(), calculateActualWeight(), QV4::Object::checkedInstanceOf(), QV4::coerce(), QQmlJSCodeGenerator::consumedRegisterVariable(), QQmlJSCodeGenerator::contentPointer(), QQmlJSCodeGenerator::contentType(), convertValue(), QQuickColorProvider::darker(), GLSL::VariableDeclarationAST::declarationType(), QQuickPropertyChangesPrivate::decodeBinding(), QQmlBindPrivate::decodeBinding(), deserializeBlockMemberVar(), deserializeBuiltinVar(), QIBusAttributeList::deserializeFrom(), deserializeInOutVar(), dumpAttributeVariant(), QSqlResult::exec(), QSGRhiShaderLinker::feedConstants(), QSGRhiShaderLinker::feedSamplers(), QuickTestResult::fuzzyCompare(), QQmlJSCodeGenerator::generate_MoveConst(), QQmlJSCodeGenerator::generate_StoreReg(), QFreetypeFace::getFace(), QQmlJSCodeGenerator::getLookupPreparation(), QDateTimeEditPrivate::init(), QHeaderView::initStyleOptionForIndex(), QV4::Object::instanceOf(), QQuickFolderListModel::isFolder(), QTextFormat::lengthVectorProperty(), QQuickColorProvider::lighter(), metaDataValue(), QV4::ExecutionEngine::metaTypeFromJS(), GLSL::Engine::newVariable(), operator<<(), operator<<(), parseTestArgs(), QSGMaterialShaderPrivate::prepare(), qMakeFieldInfo(), qmlGetConfigOption(), QOCICols::readLOBs(), QQmlSettingsPrivate::readProperty(), QSSGShaderResourceMergeContext::registerInput(), QSSGShaderResourceMergeContext::registerOutput(), QSSGShaderResourceMergeContext::registerSampler(), QRhiGles2::registerUniformIfActive(), QSSGShaderResourceMergeContext::registerUniformMember(), QSSGCustomMaterialSystem::rhiPrepareRenderable(), QHeaderView::sectionSizeFromContents(), QBluetoothServiceInfo::serviceClassUuids(), QSSGSceneDesc::PropertySetter< Ret, Class, Arg >::set(), QSSGSceneDesc::PropertyListSetter< Ret, Class, Arg >::set(), QSSGSceneDesc::PropertyList< Class, T, List >::set(), QSSGSceneDesc::PropertyProxySetter< Ret, Arg >::set(), QQuickMaterialStyle::setAccent(), QQuickUniversalStyle::setAccent(), QQuickMaterialStyle::setBackground(), QQuickUniversalStyle::setBackground(), QQuickImageParticle::setColorVariation(), QQuickMaterialStyle::setForeground(), QQuickUniversalStyle::setForeground(), QQuickMaterialStyle::setPrimary(), QSSGQmlUtilities::setProperty(), someFunc(), QQmlPrivate::AOTCompiledContext::storeNameSloppy(), QPrinter::supportedResolutions(), QRhiGles2::tryLoadFromDiskOrPipelineCache(), QWinRegistryKey::value(), QSSGQmlUtilities::valueToQml(), QDateTimeEditPrivate::valueToText(), DarwinBluetooth::variant_to_nsnumber< char >(), DarwinBluetooth::variant_to_nsnumber< int >(), DarwinBluetooth::variant_to_nsnumber< short >(), DarwinBluetooth::variant_to_nsnumber< unsigned >(), DarwinBluetooth::variant_to_nsnumber< unsigned char >(), DarwinBluetooth::variant_to_nsnumber< unsigned short >(), QV4::Object::virtualInstanceOf(), QV4::QQmlTypeWrapper::virtualInstanceOf(), and GLSL::Semantic::visit().