8#include <QtCore/qobjectdefs.h>
9#include <QtCore/qvariant.h>
15#define Q_METAMETHOD_INVOKE_MAX_ARGS 10
25 int returnType()
const;
27 int parameterCount()
const;
28 int parameterType(
int index)
const;
30 void getParameterTypes(
int *
types)
const;
34 const char *
tag()
const;
35 enum Access { Private, Protected, Public };
38 MethodType methodType()
const;
40 int attributes()
const;
41 int methodIndex()
const;
42 int relativeMethodIndex()
const;
48#if QT_VERSION <= QT_VERSION_CHECK(7, 0, 0)
76 val0, val1, val2, val3, val4, val5, val6, val7, val8, val9);
92 val0, val1, val2, val3, val4, val5, val6, val7, val8, val9);
107 val0, val1, val2, val3, val4, val5, val6, val7, val8, val9);
109 bool invokeOnGadget(
void *gadget,
134 val0, val1, val2, val3, val4, val5, val6, val7, val8, val9);
138 template <
typename... Args>
148 return invokeImpl(*
this,
obj,
c,
h.parameterCount(),
h.parameters.data(),
149 h.typeNames.data(),
h.metaTypes.data());
152 template <
typename... Args>
163 template <
typename... Args>
174 template <
typename... Args>
185 template <
typename... Args>
195 h.parameters.data(),
h.typeNames.data(),
h.metaTypes.data());
198 template <
typename... Args>
209 inline bool isValid()
const {
return mobj !=
nullptr; }
211 template <
typename Po
interToMemberFunction>
216 "No Q_OBJECT in the class with the signal");
217 return fromSignalImpl(&SignalType::Object::staticMetaObject,
218 reinterpret_cast<void **
>(&
signal));
223 const void *
const *parameters,
const char *
const *typeNames,
255 {
return m1.data == m2.data; }
257 {
return !(m1 == m2); }
266 const char *
name()
const;
267 const char *enumName()
const;
271 bool isScoped()
const;
273 int keyCount()
const;
277 const char *scope()
const;
279 int keyToValue(
const char *
key,
bool *
ok =
nullptr)
const;
280 const char *valueToKey(
int value)
const;
281 int keysToValue(
const char *
keys,
bool *
ok =
nullptr)
const;
292 "QMetaEnum::fromType only works with enums declared as "
293 "Q_ENUM, Q_ENUM_NS, Q_FLAG or Q_FLAG_NS");
295 const char *
name = qt_getEnumName(T());
303 quint32 alias()
const {
return d[1]; }
305 qint32 keyCount()
const {
return static_cast<qint32>(
d[3]); }
326 const char *
name()
const;
328#if QT_DEPRECATED_SINCE(6, 0)
332 QVariant::Type
type()
const
333 {
int t = userType();
return t >=
QMetaType::User ? QVariant::UserType : QVariant::Type(
t); }
337 int typeId()
const {
return metaType().id(); }
339 int propertyIndex()
const;
340 int relativePropertyIndex()
const;
342 bool isReadable()
const;
343 bool isWritable()
const;
344 bool isResettable()
const;
345 bool isDesignable()
const;
346 bool isScriptable()
const;
347 bool isStored()
const;
349 bool isConstant()
const;
350 bool isFinal()
const;
351 bool isRequired()
const;
352 bool isBindable()
const;
354 bool isFlagType()
const;
355 bool isEnumType()
const;
358 bool hasNotifySignal()
const;
360 int notifySignalIndex()
const;
362 int revision()
const;
371 QVariant readOnGadget(
const void *gadget)
const;
372 bool writeOnGadget(
void *gadget,
const QVariant &
value)
const;
374 bool resetOnGadget(
void *gadget)
const;
376 bool hasStdCppSet()
const;
377 bool isAlias()
const;
378 inline bool isValid()
const {
return isReadable(); }
382#if QT_DEPRECATED_SINCE(6, 4)
384 int registerPropertyType() const;
393 uint notifyIndex()
const {
return d[3]; }
394 uint revision()
const {
return d[4]; }
415 const char *
name()
const;
416 const char *
value()
const;
\macro QMetaMethodArgument Q_ARG(Type, const Type &value)
QList< QVariant > arguments
Combined button and popup list for selecting options.
std::enable_if_t<!AreOldStyleArgs< Args... >::value, T > IfNotOldStyleArgs
auto invokeMethodHelper(QMetaMethodReturnArgument r, const Args &... arguments)
#define QT_WARNING_DISABLE_DEPRECATED
AudioChannelLayoutTag tag
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLsizei GLenum GLenum * types
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLfloat GLfloat GLfloat GLfloat h
#define QT_DEPRECATED_VERSION_X_6_4(text)
#define QT_DEPRECATED_VERSION_6_0
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
ReturnedValue read(const char *data)
gzip write("uncompressed data")
obj metaObject() -> className()