QGenericArgument Class
The QGenericArgument class is an internal helper class for marshalling arguments. More…
| Header | #include <QGenericArgument> |
|---|---|
| CMake | target_link_libraries(app PRIVATE Nt::Core) |
| Module | Nt Core C++ Classes |
| Inherited by | QArgument, 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
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.