6.0.0-rc4Source

QGenericArgument Class

The QGenericArgument class is an internal helper class for marshalling arguments. More…

Header#include <QGenericArgument>
CMaketarget_link_libraries(app PRIVATE Nt::Core)
ModuleNt Core C++ Classes
Inherited byQArgument, QGenericReturnArgument

List of all members, including inherited members

Public Functions

QGenericArgument(const char *aName = nullptr, const void *aData = nullptr)
void *data() const
const char *name() const

Detailed Description

Create one with Q_ARG() to pass an argument to QMetaObject::invokeMethod(). It holds the name of the argument's type and a pointer to its value.

See also QMetaObject::invokeMethod().

Differences from Qt

None.

Member Function Documentation

[constexpr] QGenericArgument::QGenericArgument(const char *aName = nullptr, const void *aData = nullptr)

Constructs a QGenericArgument for a value of the type called aName at aData.

void * QGenericArgument::data() const

Returns the address of the value.

const char * QGenericArgument::name() const

Returns the name of the value's type.