Nesta página

QGenericArgument Class

A classe QGenericArgument é uma classe auxiliar interna para o marshalling de argumentos. Mais...

Cabeçalho: #include <QGenericArgument>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
Herdado por:

QGenericReturnArgument

Funções públicas

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

Descrição detalhada

Esta classe nunca deve ser usada diretamente. Use a macro ` Q_ARG()` em vez disso.

Veja também Q_ARG(), QMetaObject::invokeMethod() e QGenericReturnArgument.

Documentação das funções-membro

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

Cria um objeto QGenericArgument com os parâmetros ` name ` e ` data` fornecidos.

void *QGenericArgument::data() const

Retorna o conjunto de dados definido no construtor.

const char *QGenericArgument::name() const

Retorna o nome definido no construtor.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.