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>.
|
\inmodule QtCore More...
#include <qobjectdefs.h>
Classes | |
struct | Data |
struct | SuperData |
Public Types | |
enum | Call { InvokeMetaMethod , ReadProperty , WriteProperty , ResetProperty , CreateInstance , IndexOfMethod , RegisterPropertyMetaType , RegisterMethodArgumentMetaType , BindableProperty , CustomCall , ConstructInPlace } |
typedef void *Connection::* | RestrictedBool |
Public Member Functions | |
const char * | className () const |
Returns the class name. | |
const QMetaObject * | superClass () const |
Returns the meta-object of the superclass, or \nullptr if there is no such object. | |
bool | inherits (const QMetaObject *metaObject) const noexcept |
Returns true if the class described by this QMetaObject inherits the type described by metaObject; otherwise returns false. | |
QObject * | cast (QObject *obj) const |
const QObject * | cast (const QObject *obj) const |
QString | tr (const char *s, const char *c, int n=-1) const |
QMetaType | metaType () const |
int | methodOffset () const |
Returns the method offset for this class; i.e. | |
int | enumeratorOffset () const |
Returns the enumerator offset for this class; i.e. | |
int | propertyOffset () const |
Returns the property offset for this class; i.e. | |
int | classInfoOffset () const |
Returns the class information offset for this class; i.e. | |
int | constructorCount () const |
int | methodCount () const |
Returns the number of methods in this class, including the number of methods provided by each base class. | |
int | enumeratorCount () const |
Returns the number of enumerators in this class. | |
int | propertyCount () const |
Returns the number of properties in this class, including the number of properties provided by each base class. | |
int | classInfoCount () const |
Returns the number of items of class information in this class. | |
int | indexOfConstructor (const char *constructor) const |
int | indexOfMethod (const char *method) const |
Finds method and returns its index; otherwise returns -1. | |
int | indexOfSignal (const char *signal) const |
Finds signal and returns its index; otherwise returns -1. | |
int | indexOfSlot (const char *slot) const |
Finds slot and returns its index; otherwise returns -1. | |
int | indexOfEnumerator (const char *name) const |
Finds enumerator name and returns its index; otherwise returns -1. | |
int | indexOfProperty (const char *name) const |
Finds property name and returns its index; otherwise returns -1. | |
int | indexOfClassInfo (const char *name) const |
Finds class information item name and returns its index; otherwise returns -1. | |
QMetaMethod | constructor (int index) const |
QMetaMethod | method (int index) const |
Returns the meta-data for the method with the given index. | |
QMetaEnum | enumerator (int index) const |
Returns the meta-data for the enumerator with the given index. | |
QMetaProperty | property (int index) const |
Returns the meta-data for the property with the given index. | |
QMetaClassInfo | classInfo (int index) const |
Returns the meta-data for the item of class information with the given index. | |
QMetaProperty | userProperty () const |
template<typename... Args> | |
QtPrivate::Invoke::IfNotOldStyleArgs< QObject *, Args... > | newInstance (Args &&... arguments) const |
int | static_metacall (Call, int, void **) const |
~Connection () | |
Connection () | |
Connection (const Connection &other) | |
Connection & | operator= (const Connection &other) |
operator RestrictedBool () const | |
Connection (Connection &&other) noexcept | |
void | swap (Connection &other) noexcept |
Static Public Member Functions | |
static bool | checkConnectArgs (const char *signal, const char *method) |
Returns true if the signal and method arguments are compatible; otherwise returns false . | |
static bool | checkConnectArgs (const QMetaMethod &signal, const QMetaMethod &method) |
static QByteArray | normalizedSignature (const char *method) |
Normalizes the signature of the given method. | |
static QByteArray | normalizedType (const char *type) |
static Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, int method_index, int type=0, int *types=nullptr) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, int method_index) |
static bool | disconnectOne (const QObject *sender, int signal_index, const QObject *receiver, int method_index) |
static void | connectSlotsByName (QObject *o) |
Searches recursively for all child objects of the given object, and connects matching signals from them to slots of object that follow the following form: | |
static void | activate (QObject *sender, int signal_index, void **argv) |
static void | activate (QObject *sender, const QMetaObject *, int local_signal_index, void **argv) |
static void | activate (QObject *sender, int signal_offset, int local_signal_index, void **argv) |
static bool | invokeMethod (QObject *obj, const char *member, Qt::ConnectionType, QGenericReturnArgument ret, QGenericArgument val0=QGenericArgument(nullptr), QGenericArgument val1=QGenericArgument(), QGenericArgument val2=QGenericArgument(), QGenericArgument val3=QGenericArgument(), QGenericArgument val4=QGenericArgument(), QGenericArgument val5=QGenericArgument(), QGenericArgument val6=QGenericArgument(), QGenericArgument val7=QGenericArgument(), QGenericArgument val8=QGenericArgument(), QGenericArgument val9=QGenericArgument()) |
\threadsafe This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. \obsolete [6.5] Please use the variadic overload of this function | |
static bool | invokeMethod (QObject *obj, const char *member, QGenericReturnArgument ret, QGenericArgument val0=QGenericArgument(nullptr), QGenericArgument val1=QGenericArgument(), QGenericArgument val2=QGenericArgument(), QGenericArgument val3=QGenericArgument(), QGenericArgument val4=QGenericArgument(), QGenericArgument val5=QGenericArgument(), QGenericArgument val6=QGenericArgument(), QGenericArgument val7=QGenericArgument(), QGenericArgument val8=QGenericArgument(), QGenericArgument val9=QGenericArgument()) |
static bool | invokeMethod (QObject *obj, const char *member, Qt::ConnectionType type, QGenericArgument val0, QGenericArgument val1=QGenericArgument(), QGenericArgument val2=QGenericArgument(), QGenericArgument val3=QGenericArgument(), QGenericArgument val4=QGenericArgument(), QGenericArgument val5=QGenericArgument(), QGenericArgument val6=QGenericArgument(), QGenericArgument val7=QGenericArgument(), QGenericArgument val8=QGenericArgument(), QGenericArgument val9=QGenericArgument()) |
static bool | invokeMethod (QObject *obj, const char *member, QGenericArgument val0, QGenericArgument val1=QGenericArgument(), QGenericArgument val2=QGenericArgument(), QGenericArgument val3=QGenericArgument(), QGenericArgument val4=QGenericArgument(), QGenericArgument val5=QGenericArgument(), QGenericArgument val6=QGenericArgument(), QGenericArgument val7=QGenericArgument(), QGenericArgument val8=QGenericArgument(), QGenericArgument val9=QGenericArgument()) |
template<typename ReturnArg , typename... Args> | |
static QtPrivate::Invoke::IfNotOldStyleArgs< bool, Args... > | invokeMethod (QObject *obj, const char *member, Qt::ConnectionType c, QTemplatedMetaMethodReturnArgument< ReturnArg > r, Args &&... arguments) |
template<typename... Args> | |
static QtPrivate::Invoke::IfNotOldStyleArgs< bool, Args... > | invokeMethod (QObject *obj, const char *member, Qt::ConnectionType c, Args &&... arguments) |
template<typename ReturnArg , typename... Args> | |
static QtPrivate::Invoke::IfNotOldStyleArgs< bool, Args... > | invokeMethod (QObject *obj, const char *member, QTemplatedMetaMethodReturnArgument< ReturnArg > r, Args &&... arguments) |
template<typename... Args> | |
static QtPrivate::Invoke::IfNotOldStyleArgs< bool, Args... > | invokeMethod (QObject *obj, const char *member, Args &&... arguments) |
template<typename Func > | |
static std::enable_if_t<!std::disjunction_v< std::is_convertible< Func, const char * >, QtPrivate::Invoke::AreOldStyleArgs< Func > >, bool > | invokeMethod (typename QtPrivate::ContextTypeForFunctor< Func >::ContextType *object, Func &&function, Qt::ConnectionType type, typename QtPrivate::Callable< Func >::ReturnType *ret) |
template<typename Func > | |
static std::enable_if_t<!std::disjunction_v< std::is_convertible< Func, const char * >, QtPrivate::Invoke::AreOldStyleArgs< Func > >, bool > | invokeMethod (typename QtPrivate::ContextTypeForFunctor< Func >::ContextType *object, Func &&function, typename QtPrivate::Callable< Func >::ReturnType *ret) |
template<typename Func , typename... Args> | |
static std::enable_if_t<!std::disjunction_v< std::is_convertible< Func, const char * >, QtPrivate::Invoke::AreOldStyleArgs< Args... > >, bool > | invokeMethod (typename QtPrivate::ContextTypeForFunctor< Func >::ContextType *object, Func &&function, Qt::ConnectionType type, QTemplatedMetaMethodReturnArgument< typename QtPrivate::Callable< Func, Args... >::ReturnType > ret, Args &&...args) |
template<typename Func , typename... Args> | |
static std::enable_if_t<!std::disjunction_v< std::is_convertible< Func, const char * >, QtPrivate::Invoke::AreOldStyleArgs< Args... > >, bool > | invokeMethod (typename QtPrivate::ContextTypeForFunctor< Func >::ContextType *object, Func &&function, Qt::ConnectionType type, Args &&...args) |
template<typename Func , typename... Args> | |
static std::enable_if_t<!std::disjunction_v< std::is_convertible< Func, const char * >, QtPrivate::Invoke::AreOldStyleArgs< Args... > >, bool > | invokeMethod (typename QtPrivate::ContextTypeForFunctor< Func >::ContextType *object, Func &&function, QTemplatedMetaMethodReturnArgument< typename QtPrivate::Callable< Func, Args... >::ReturnType > ret, Args &&...args) |
template<typename Func , typename... Args> | |
static std::enable_if_t<!std::disjunction_v< std::is_convertible< Func, const char * >, QtPrivate::Invoke::AreOldStyleArgs< Args... > >, bool > | invokeMethod (typename QtPrivate::ContextTypeForFunctor< Func >::ContextType *object, Func &&function, Args &&...args) |
static int | metacall (QObject *, Call, int, void **) |
template<const QMetaObject & MO> | |
static constexpr const QMetaObject * | staticMetaObject () |
Public Attributes | |
struct QMetaObject::Data | d |
Friends | |
class | QTimer |
class | QChronoTimer |
class | QObject |
class | QObjectPrivate |
struct | QMetaObject |
\inmodule QtCore
The QMetaObject class contains meta-information about Qt objects.
The Qt \l{Meta-Object System} in Qt is responsible for the signals and slots inter-object communication mechanism, runtime type information, and the Qt property system. A single QMetaObject instance is created for each QObject subclass that is used in an application, and this instance stores all the meta-information for the QObject subclass. This object is available as QObject::metaObject().
This class is not normally required for application programming, but it is useful if you write meta-applications, such as scripting engines or GUI builders.
The functions you are most likely to find useful are these: \list
The index functions indexOfConstructor(), indexOfMethod(), indexOfEnumerator(), and indexOfProperty() map names of constructors, member functions, enumerators, or properties to indexes in the meta-object. For example, Qt uses indexOfMethod() internally when you connect a signal to a slot.
Classes can also have a list of {name}–{value} pairs of additional class information, stored in QMetaClassInfo objects. The number of pairs is returned by classInfoCount(), single pairs are returned by classInfo(), and you can search for pairs with indexOfClassInfo().
Definition at line 233 of file qobjectdefs.h.
typedef void* Connection::* QMetaObject::RestrictedBool |
Definition at line 662 of file qobjectdefs.h.
enum QMetaObject::Call |
\value InvokeMetaMethod \value ReadProperty \value WriteProperty \value ResetProperty \value CreateInstance \value IndexOfMethod \value RegisterPropertyMetaType \value RegisterMethodArgumentMetaType \value BindableProperty \value CustomCall \value ConstructInPlace
Enumerator | |
---|---|
InvokeMetaMethod | |
ReadProperty | |
WriteProperty | |
ResetProperty | |
CreateInstance | |
IndexOfMethod | |
RegisterPropertyMetaType | |
RegisterMethodArgumentMetaType | |
BindableProperty | |
CustomCall | |
ConstructInPlace |
Definition at line 544 of file qobjectdefs.h.
QMetaObject::~Connection | ( | ) |
|
static |
Definition at line 4165 of file qobject.cpp.
References Q_UNLIKELY, qt_signal_spy_callback_set, and QMetaObjectPrivate::signalOffset().
signal_index comes from indexOfMethod()
Definition at line 4193 of file qobject.cpp.
References mo.
Referenced by QQmlVMEMetaObject::activate(), QQmlOpenMetaObject::checkedSetValue(), QQmlContextPrivate::dropDestroyedQObject(), VDMListDelegateDataType::emitAllSignals(), QQmlDelegateModelAttached::emitChanges(), QQmlOpenMetaObject::emitPropertyNotification(), QDBusInterfacePrivate::metacall(), QQmlDMAbstractItemModelData::metaCall(), QQmlOpenMetaObject::metaCall(), QQmlProxyMetaObject::metaCall(), QQmlDMObjectDataMetaObject::metaCall(), VDMListDelegateDataType::metaCall(), VDMAbstractItemModelDataType::notify(), QQmlDMAbstractItemModelData::resolveIndex(), QQmlDMAbstractItemModelData::set_property(), QQmlContext::setContextProperty(), QQmlDMAbstractItemModelData::setModelData(), QQmlDesignerMetaObject::setValue(), and QQmlOpenMetaObject::setValue().
|
static |
Definition at line 4179 of file qobject.cpp.
References Q_UNLIKELY, and qt_signal_spy_callback_set.
Returns obj if object obj inherits from this meta-object; otherwise returns \nullptr.
Definition at line 393 of file qmetaobject.cpp.
Returns obj if object obj inherits from this meta-object; otherwise returns \nullptr.
Definition at line 240 of file qobjectdefs.h.
|
static |
Returns true
if the signal and method arguments are compatible; otherwise returns false
.
Both signal and method are expected to be normalized.
Definition at line 1266 of file qmetaobject.cpp.
References method, qstrcmp(), qstrlen(), s2, and signal.
Referenced by QObject::connect(), and signalForMember().
|
static |
Returns true
if the signal and method arguments are compatible; otherwise returns false
.
Definition at line 1288 of file qmetaobject.cpp.
References QMetaObjectPrivate::checkConnectArgs(), method, and signal.
QMetaClassInfo QMetaObject::classInfo | ( | int | index | ) | const |
Returns the meta-data for the item of class information with the given index.
Example:
Definition at line 1243 of file qmetaobject.cpp.
References classInfoOffset(), d, i, and priv().
Referenced by QMetaObjectBuilder::addMetaObject().
int QMetaObject::classInfoCount | ( | ) | const |
Returns the number of items of class information in this class.
Definition at line 619 of file qmetaobject.cpp.
Referenced by QMetaObjectBuilder::addMetaObject().
int QMetaObject::classInfoOffset | ( | ) | const |
Returns the class information offset for this class; i.e.
the index position of this class's first class information item.
If the class has no superclasses with class information, the offset is 0; otherwise the offset is the sum of all the class information items in the class's superclasses.
Definition at line 529 of file qmetaobject.cpp.
Referenced by QMetaObjectBuilder::addMetaObject(), classInfo(), and indexOfClassInfo().
const char * QMetaObject::className | ( | ) | const |
Returns the class name.
Definition at line 347 of file qmetaobject.cpp.
References objectClassName().
Referenced by QMetaObjectBuilder::addMetaObject(), check_and_warn_compat(), QQmlMetaObject::className(), isScopeMatch(), metaType(), QMetaProperty::notifySignalIndex(), printMethodNotFoundWarning(), QMetaEnum::scope(), tr(), QQmlType::typeName(), QQuick3DCustomMaterial::updateSpatialNode(), and QQuick3DEffect::updateSpatialNode().
|
static |
types is a 0-terminated vector of meta types for queued connections.
if signal_index is -1, then we effectively connect all signals from the sender to the receiver's slot
Definition at line 3556 of file qobject.cpp.
References QMetaObjectPrivate::connect(), and methodIndexToSignalIndex().
Referenced by QQmlPropertyPrivate::connect(), QDBusAdaptorConnector::connectAllSignals(), QQuickPixmap::connectDownloadProgress(), QQuickPixmap::connectFinished(), QQuickContainer::contentItemChange(), QQmlSettingsPrivate::load(), qWaitForSignal(), QWidgetTextControlPrivate::setContent(), and QQuickRectangle::setGradient().
Referenced by WaylandEglClientBuffer::~WaylandEglClientBuffer(), WaylandEglStreamClientBuffer::~WaylandEglStreamClientBuffer(), LinuxDmabufWlBuffer::buffer_destroy(), QObject::connect(), QObject::connect(), QObjectPrivate::connect(), QObjectPrivate::connectImpl(), MutableModelIterator::disconnect(), and LinuxDmabufWlBuffer::initTexture().
|
inlinenoexcept |
Definition at line 666 of file qobjectdefs.h.
QMetaObject::Connection | ( | const Connection & | other | ) |
Searches recursively for all child objects of the given object, and connects matching signals from them to slots of object that follow the following form:
Let's assume our object has a child object of type {QPushButton} with the \l{QObject::objectName}{object name}
{button1}. The slot to catch the button's
{clicked()} signal would be:
If object itself has a properly set object name, its own signals are also connected to its respective slots.
Definition at line 3807 of file qobject.cpp.
References QMetaObjectPrivate::absoluteSignalCount(), QList< T >::at(), QMetaMethod::Cloned, QMetaObjectPrivate::connect(), i, j, list, method, mo, msgConnect(), o, Q_ASSERT, qCDebug, qCWarning, qstrlen(), qstrncmp(), QMetaObjectPrivate::signal(), signal, and QList< T >::size().
QMetaMethod QMetaObject::constructor | ( | int | index | ) | const |
Returns the meta-data for the constructor with the given index.
Definition at line 1155 of file qmetaobject.cpp.
Referenced by QMetaObjectBuilder::addMetaObject(), fromMatchingType(), fromVerifiedType(), and indexOfConstructor().
int QMetaObject::constructorCount | ( | ) | const |
Returns the number of constructors in this class.
Definition at line 547 of file qmetaobject.cpp.
References d, priv(), and Q_ASSERT.
Referenced by QMetaObjectBuilder::addMetaObject(), and fromMatchingType().
|
static |
Definition at line 3641 of file qobject.cpp.
References QMetaObjectPrivate::disconnect(), and methodIndexToSignalIndex().
Referenced by QQuickContainer::contentItemChange(), QDBusAdaptorConnector::disconnectAllSignals(), QWidgetTextControlPrivate::setContent(), and QQuickRectangle::setGradient().
|
static |
\internal
Disconnect a single signal connection. If QMetaObject::connect() has been called multiple times for the same sender, signal_index, receiver and method_index only one of these connections will be removed.
Definition at line 3657 of file qobject.cpp.
References QMetaObjectPrivate::disconnect(), QMetaObjectPrivate::DisconnectOne, and methodIndexToSignalIndex().
QMetaEnum QMetaObject::enumerator | ( | int | index | ) | const |
Returns the meta-data for the enumerator with the given index.
Definition at line 1185 of file qmetaobject.cpp.
References d, enumeratorOffset(), i, and priv().
Referenced by QMetaObjectBuilder::addMetaObject(), qt_QMetaEnum_debugOperator(), and qt_QMetaEnum_flagDebugOperator().
int QMetaObject::enumeratorCount | ( | ) | const |
Returns the number of enumerators in this class.
Definition at line 581 of file qmetaobject.cpp.
Referenced by QMetaObjectBuilder::addMetaObject().
int QMetaObject::enumeratorOffset | ( | ) | const |
Returns the enumerator offset for this class; i.e.
the index position of this class's first enumerator.
If the class has no superclasses with enumerators, the offset is 0; otherwise the offset is the sum of all the enumerators in the class's superclasses.
Definition at line 487 of file qmetaobject.cpp.
Referenced by QMetaObjectBuilder::addMetaObject(), and enumerator().
int QMetaObject::indexOfClassInfo | ( | const char * | name | ) | const |
Finds class information item name and returns its index; otherwise returns -1.
Definition at line 1133 of file qmetaobject.cpp.
References classInfoOffset(), i, priv(), and rawStringData().
int QMetaObject::indexOfConstructor | ( | const char * | constructor | ) | const |
Finds constructor and returns its index; otherwise returns -1.
Note that the constructor has to be in normalized form, as returned by normalizedSignature().
Definition at line 723 of file qmetaobject.cpp.
References constructor(), d, QMetaObjectPrivate::decodeMethodSignature(), QMetaObjectPrivate::indexOfConstructor(), priv(), and Q_ASSERT.
int QMetaObject::indexOfEnumerator | ( | const char * | name | ) | const |
Finds enumerator name and returns its index; otherwise returns -1.
Definition at line 1062 of file qmetaobject.cpp.
References QMetaObjectPrivate::indexOfEnumerator().
Referenced by qt_QMetaEnum_debugOperator(), and qt_QMetaEnum_flagDebugOperator().
int QMetaObject::indexOfMethod | ( | const char * | method | ) | const |
Finds method and returns its index; otherwise returns -1.
Note that the method has to be in normalized form, as returned by normalizedSignature().
Definition at line 739 of file qmetaobject.cpp.
References QMetaObjectPrivate::decodeMethodSignature(), i, method, priv(), and Q_ASSERT.
Referenced by QTextDocument::loadResource(), and maybeInvokeSetupMethod().
int QMetaObject::indexOfProperty | ( | const char * | name | ) | const |
Finds property name and returns its index; otherwise returns -1.
Definition at line 1101 of file qmetaobject.cpp.
References QAbstractDynamicMetaObject::createProperty(), d, DynamicMetaObject, i, priv(), and rawStringData().
Referenced by QQmlPrivate::initObjectLookup(), QObject::property(), qQmlPropertyCacheCreate(), removePendingQPropertyBinding(), VDMListDelegateDataType::setValue(), and VDMListDelegateDataType::value().
int QMetaObject::indexOfSignal | ( | const char * | signal | ) | const |
Finds signal and returns its index; otherwise returns -1.
This is the same as indexOfMethod(), except that it will return -1 if the method exists but isn't a signal.
Note that the signal has to be in normalized form, as returned by normalizedSignature().
Definition at line 804 of file qmetaobject.cpp.
References QMetaObjectPrivate::decodeMethodSignature(), i, QMetaObjectPrivate::indexOfSignalRelative(), priv(), Q_ASSERT, and signal.
int QMetaObject::indexOfSlot | ( | const char * | slot | ) | const |
Finds slot and returns its index; otherwise returns -1.
This is the same as indexOfMethod(), except that it will return -1 if the method exists but isn't a slot.
Definition at line 851 of file qmetaobject.cpp.
References QMetaObjectPrivate::decodeMethodSignature(), i, QMetaObjectPrivate::indexOfSlotRelative(), priv(), and Q_ASSERT.
Referenced by QQmlDelayedCallQueue::init().
|
noexcept |
Returns true
if the class described by this QMetaObject inherits the type described by metaObject; otherwise returns false.
A type is considered to inherit itself.
Definition at line 369 of file qmetaobject.cpp.
References metaObject().
Referenced by QQmlMetaObject::canConvert().
|
inlinestatic |
Invokes the member (a signal or a slot name) on the object obj. Returns true
if the member could be invoked. Returns false
if there is no such member or the parameters did not match.
For the overloads with a QTemplatedMetaMethodReturnArgument parameter, the return value of the member function call is placed in ret. For the overloads without such a member, the return value of the called function (if any) will be discarded. QTemplatedMetaMethodReturnArgument is an internal type you should not use directly. Instead, use the qReturnArg() function.
The overloads with a Qt::ConnectionType type parameter allow explicitly selecting whether the invocation will be synchronous or not:
\list
You only need to pass the name of the signal or slot to this function, not the entire signature. For example, to asynchronously invoke the \l{QThread::quit()}{quit()} slot on a QThread, use the following code:
With asynchronous method invocations, the parameters must be copyable types, because Qt needs to copy the arguments to store them in an event behind the scenes. Since Qt 6.5, this function automatically registers the types being used; however, as a side-effect, it is not possible to make calls using types that are only forward-declared. Additionally, it is not possible to make asynchronous calls that use references to non-const-qualified types as parameters either.
To synchronously invoke the compute(QString, int, double)
slot on some arbitrary object obj
retrieve its return value:
If the "compute" slot does not take exactly one \l QString, one int
, and one double
in the specified order, the call will fail. Note how it was necessary to be explicit about the type of the QString, as the character literal is not exactly the right type to match. If the method instead took a \l QStringView, a \l qsizetype, and a float
, the call would need to be written as:
The same call can be executed using the Q_ARG() and Q_RETURN_ARG() macros, as in:
The macros are kept for compatibility with Qt 6.4 and earlier versions, and can be freely mixed with parameters that do not use the macro. They may be necessary in rare situations when calling a method that used a typedef to forward-declared type as a parameter or the return type.
Definition at line 410 of file qobjectdefs.h.
References arguments, and Qt::AutoConnection.
|
inlinestatic |
Definition at line 349 of file qobjectdefs.h.
References Qt::AutoConnection.
|
inlinestatic |
Definition at line 315 of file qobjectdefs.h.
References Qt::AutoConnection, and ret.
|
inlinestatic |
Definition at line 386 of file qobjectdefs.h.
References arguments.
|
inlinestatic |
Definition at line 372 of file qobjectdefs.h.
References arguments, and QtPrivate::invokeMethodHelper().
|
inlinestatic |
Definition at line 332 of file qobjectdefs.h.
|
static |
\threadsafe This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. \obsolete [6.5] Please use the variadic overload of this function
Invokes the member (a signal or a slot name) on the object obj. Returns true
if the member could be invoked. Returns false
if there is no such member or the parameters did not match.
See the variadic invokeMethod() function for more information. This function should behave the same way as that one, with the following limitations:
\list
With asynchronous method invocations, the parameters must be of types that are already known to Qt's meta-object system, because Qt needs to copy the arguments to store them in an event behind the scenes. If you try to use a queued connection and get the error message
call qRegisterMetaType() to register the data type before you call invokeMethod().
Definition at line 1544 of file qmetaobject.cpp.
References MaximumParamCount, qstrlen(), and ret.
Referenced by QAndroidPlatformServices::QAndroidPlatformServices(), QDBusAbstractAdaptor::QDBusAbstractAdaptor(), QDBusPendingCallWatcher::QDBusPendingCallWatcher(), QGeoTiledMappingManagerEngineNokia::QGeoTiledMappingManagerEngineNokia(), QNetworkReplyDataImpl::QNetworkReplyDataImpl(), QNetworkReplyFileImpl::QNetworkReplyFileImpl(), QNetworkReplyHttpImpl::QNetworkReplyHttpImpl(), QPlaceContentReplyUnsupported::QPlaceContentReplyUnsupported(), QPlaceDetailsReplyUnsupported::QPlaceDetailsReplyUnsupported(), QPlaceIdReplyUnsupported::QPlaceIdReplyUnsupported(), QPlaceMatchReplyUnsupported::QPlaceMatchReplyUnsupported(), QPlaceReplyUnsupported::QPlaceReplyUnsupported(), QPlaceSearchReplyUnsupported::QPlaceSearchReplyUnsupported(), QPlaceSearchSuggestionReplyUnsupported::QPlaceSearchSuggestionReplyUnsupported(), QPlatformInputContext::QPlatformInputContext(), QQnxIntegration::QQnxIntegration(), QQuickVideoOutput::QQuickVideoOutput(), QVncServer::QVncServer(), QWaylandClientExtension::QWaylandClientExtension(), SharedTextureImageResponse::SharedTextureImageResponse(), AndroidTextureThread::~AndroidTextureThread(), QAndroidTextureVideoOutput::~QAndroidTextureVideoOutput(), QNetworkReplyFileImpl::~QNetworkReplyFileImpl(), QQuick3DViewport::~QQuick3DViewport(), QRhiWithThreadGuard::~QRhiWithThreadGuard(), QNetworkReplyHttpImplPrivate::_q_bufferOutgoingDataFinished(), QNetworkReplyImplPrivate::_q_bufferOutgoingDataFinished(), QNetworkReplyHttpImplPrivate::_q_cacheLoadReadyRead(), QHttpNetworkConnectionChannel::_q_connected_abstract_socket(), QHttpNetworkConnectionChannel::_q_disconnected(), QHttpNetworkConnectionChannel::_q_encrypted(), QHttpNetworkConnectionChannel::_q_error(), QHttpNetworkConnectionPrivate::_q_hostLookupFinished(), QGraphicsScenePrivate::_q_polishItems(), QNetworkAccessManagerPrivate::_q_replyFinished(), QHttpThreadDelegate::abortRequest(), QQuickActionGroupPrivate::actions_clear(), QLayout::addChildWidget(), VariantRef::addref(), QHttpNetworkConnectionChannel::allDone(), QtWaylandClient::QWaylandWindow::applyConfigureWhenPossible(), AndroidCamera::autoFocus(), QQuick3DLightmapBaker::bake(), QPlatformAudioDecoder::bufferAvailableChanged(), QPlatformAudioDecoder::bufferReady(), QQuickButtonGroupPrivate::buttons_clear(), AndroidCamera::cancelAutoFocus(), QAbstractSocketPrivate::canCloseNotification(), QDeclarativePlace::category_clear(), QPSQLDriverPrivate::checkPendingNotifications(), QNetworkReplyFileImpl::close(), QHttpNetworkConnectionChannel::closeAndResendCurrentRequest(), QDBusConnectionManager::connectToBus(), QDBusConnectionManager::connectToBus(), QDBusConnectionManager::connectToPeer(), contextStateCallback(), QGeoTileFetcherNokia::copyrightsFetched(), QGraphicsProxyWidget::createProxyForChildWidget(), QtAndroidQuickViewEmbedding::createQuickView(), QtAndroidWindowEmbedding::createRootWindow(), QDBusConnectionManager::createServer(), QQC2::createTreeViewHelperWindow(), QAbstractItemViewPrivate::delegateSizeHintChanged(), QBluetoothLocalDevicePrivate::deviceConnected(), QBluetoothLocalDevicePrivate::deviceDisconnected(), QtAndroidDialogHelpers::dialogResult(), AVFImageCapture::doCapture(), QFFmpegImageCapture::doCapture(), QFFmpeg::Renderer::doForceStep(), SharedTextureImageResponse::doRequest(), QAbstractItemDelegatePrivate::editorEventFilter(), QSocks5SocketEnginePrivate::emitConnectionNotification(), QSocks5SocketEnginePrivate::emitReadNotification(), QHttpNetworkConnectionPrivate::emitReplyError(), QSocks5SocketEnginePrivate::emitWriteNotification(), QHttpNetworkConnectionChannel::ensureConnection(), QSocketNotifier::event(), QObject::event(), executeIMFRequest(), QTestEventLoop::exitLoop(), AndroidCamera::fetchLastPreviewFrame(), QDeclarativeGeoMapItemTransitionManager::finalizeEnterTransition(), QDeclarativeGeoMapItemTransitionManager::finalizeExitTransition(), QHttpThreadDelegate::finishedSlot(), QHttpThreadDelegate::finishedWithErrorSlot(), QNetworkReplyHttpImplPrivate::followRedirect(), QJSValuePrivate::free(), OrgFreedesktopDBusPropertiesAdaptor::Get(), OrgFreedesktopDBusPropertiesAdaptor::GetAll(), OrgFreedesktopDBusObjectManagerAdaptor::GetManagedObjects(), QPlaceManagerEngineNokiaV2::getPlaceContent(), handle_sqlite_callback(), QtAndroidInput::handleLocationChanged(), QPdfPageRendererPrivate::handleNextRequest(), handleOrientationChanged(), QHttpNetworkConnectionChannel::handleStatus(), QHttpNetworkConnectionChannel::handleUnexpectedEOF(), QtWaylandClient::QWaylandWindow::handleUpdate(), QPlaceManagerEngineMapbox::initializeCategories(), QNearFieldTargetPrivateImpl::invalidate(), QQuickText::invalidate(), QQuickTextEdit::invalidate(), QGraphicsSceneBspTreeIndexPrivate::invalidateSortCache(), QtAndroidAccessibility::invokeActionOnInterfaceInMainThread(), invokeDecrementPendingDevicesCountAndCheckFinished(), QQuickCanvasItem::itemChange(), jump(), QtAndroidInput::keyboardVisibilityChanged(), QQuickTumbler::keyPressEvent(), locationProvidersChanged(), locationProvidersDisabled(), AndroidCamera::lock(), QtAndroidInput::longPress(), LowEnergyNotificationHub::lowEnergy_advertisementError(), LowEnergyNotificationHub::lowEnergy_characteristicWritten(), LowEnergyNotificationHub::lowEnergy_connectionChange(), LowEnergyNotificationHub::lowEnergy_servicesDiscovered(), main(), QSSGLayerRenderData::maybeBakeLightmap(), MyObject::methodWithDelayedReply(), QNetworkConnectionEvents::NetworkConnectionConnectivityChanged(), QNearFieldManagerPrivateImpl::newIntent(), AndroidCamera::notifyNewFrames(), notifySatelliteInfoUpdated(), QNearFieldManagerPrivateImpl::onCardInserted(), QV4::MemoryManager::onEventLoop(), SocketWorker::onReadyRead(), QGeoPositionInfoSourceWinRT::onStatusChanged(), QNetworkAccessFileBackend::open(), AndroidCamera::open(), QMacPageSetupDialogPrivate::openCocoaPageLayout(), QPrintDialogPrivate::openCocoaPrintPanel(), QDesktopServices::openUrl(), QFFmpeg::PlaybackEngine::ObjectDeleter::operator()(), positionUpdated(), QNetworkReplyHttpImplPrivate::postRequest(), qDBusNewConnection(), qEventCallback(), QInputMethod::queryFocusObject(), QPulseAudioSource::read(), QHttpThreadDelegate::readBufferFreed(), QSslSocket::readData(), QHttpNetworkConnectionPrivate::readMoreLater(), QNearFieldTargetPrivateImpl::readNdefMessages(), OrgBluezGattCharacteristic1Adaptor::ReadValue(), OrgBluezGattDescriptor1Adaptor::ReadValue(), AndroidCamera::reconnect(), QAnimationTimer::registerAnimation(), QQmlAnimationTimer::registerAnimation(), OrgBluezLEAdvertisement1Adaptor::Release(), AndroidCamera::release(), VariantRef::release(), QHttpNetworkConnectionPrivate::removeReply(), QGstVideoRenderer::render(), QLayoutPrivate::reparentChildWidgets(), QNearFieldTargetPrivate::reportError(), QAndroidPlatformTheme::requestColorScheme(), QBluetoothLocalDevice::requestPairing(), QtWaylandClient::QWaylandWindow::requestUpdate(), QHttpNetworkConnectionChannel::requeueCurrentlyPipelinedRequests(), QHttpNetworkConnectionPrivate::requeueRequest(), QHttpNetworkConnectionChannel::resendCurrentRequest(), QProgressDialog::reset(), QDarwinAudioSource::reset(), QAndroidTextureVideoOutput::reset(), QtAndroidWindowEmbedding::resizeWindow(), QDarwinAudioSource::resume(), QSslSocket::resume(), QHttpNetworkConnectionPrivate::resumeConnection(), QEvdevTouchScreenHandlerThread::run(), QtAndroidAccessibility::runInObjectContext(), runOnQtThread(), QAndroidInputContext::safeCall(), QAbstractProxyModelPrivate::scheduleHeaderUpdate(), QPlaceManagerEngineNokiaV2::search(), QPlaceManagerEngineNokiaV2::searchSuggestions(), QNetworkReplyHttpImplPrivate::sendCacheContents(), QNearFieldTargetPrivateImpl::sendCommand(), QHttpProtocolHandler::sendRequest(), QHttpNetworkConnectionChannel::sendRequestDelayed(), OrgFreedesktopDBusPropertiesAdaptor::Set(), AndroidCamera::setAutoExposureLock(), AndroidCamera::setAutoWhiteBalanceLock(), QAndroidPlatformIntegration::setAvailableGeometry(), QtWaylandClient::QWaylandWindow::setCanResize(), QDBusConnectionPrivate::setConnection(), QGraphicsItem::setCursor(), QFFmpeg::AudioSourceIO::setDevice(), AndroidCamera::setDisplayOrientation(), AndroidCamera::setExposureCompensation(), AndroidCamera::setFlashMode(), AndroidCamera::setFocusAreas(), AndroidCamera::setFocusMode(), QFFmpeg::Renderer::setInitialPosition(), AndroidCamera::setJpegQuality(), QFFmpegMediaPlayer::setMedia(), QFFmpeg::AudioSourceIO::setMuted(), QFFmpeg::Renderer::setOutputInternal(), QAudioEngine::setOutputMode(), QFFmpeg::PlaybackEngineObject::setPaused(), QDBusConnectionPrivate::setPeer(), QAndroidPlatformIntegration::setPhysicalSize(), AndroidCamera::setPictureSize(), QFFmpeg::Renderer::setPlaybackRate(), AndroidCamera::setPreviewDisplay(), AndroidCamera::setPreviewFormat(), AndroidCamera::setPreviewFpsRange(), AndroidCamera::setPreviewSize(), AndroidCamera::setPreviewTexture(), QAndroidPlatformIntegration::setRefreshRate(), AndroidCamera::setRotation(), QFFmpeg::AudioSourceIO::setRunning(), AndroidCamera::setSceneMode(), QGraphicsScenePrivate::setScenePosItemEnabled(), QAndroidPlatformIntegration::setScreenSize(), QAndroidPlatformIntegration::setScreenSizeParameters(), QNetworkReplyImplPrivate::setup(), AndroidCamera::setupPreviewFrameCallback(), QNetworkReplyHttpImplPrivate::setupTransferTimeout(), QQnxClipboard::MimeData::setUserMimeData(), QAndroidTextureVideoOutput::setVideoSize(), QFFmpeg::AudioSourceIO::setVolume(), AndroidCamera::setWhiteBalance(), QtAndroidWindowEmbedding::setWindowVisible(), QTableView::setWordWrap(), QHttpSocketEngine::setWriteNotificationEnabled(), AndroidCamera::setZoom(), QHttpNetworkConnectionPrivate::shouldEmitChannelError(), QTimer::singleShot(), QChronoTimer::singleShot(), QAudioEngine::start(), QUnifiedTimer::startAnimationTimer(), QHttpNetworkConnectionPrivate::startHostInfoLookup(), OrgBluezGattCharacteristic1Adaptor::StartNotify(), AndroidCamera::startPreview(), QHttpThreadDelegate::startRequestSynchronously(), QSingleShotTimer::startTimerForReceiver(), QGeoPositionInfoSourceGeoclue2::startUpdates(), QDarwinAudioSource::stop(), QGstVideoRenderer::stop(), QAudioEngine::stop(), QAndroidTextureVideoOutput::stop(), QUnifiedTimer::stopAnimationTimer(), OrgBluezGattCharacteristic1Adaptor::StopNotify(), AndroidCamera::stopPreview(), AndroidCamera::stopPreviewSynchronous(), QWindowsMediaDeviceReader::stopRecording(), QNetworkAccessManager::supportedSchemes(), QAndroidTextureVideoOutput::surfaceTexture(), QDarwinAudioSource::suspend(), QHttpThreadDelegate::synchronousFinishedSlot(), QHttpThreadDelegate::synchronousFinishedWithErrorSlot(), QFFmpeg::Renderer::syncSoft(), AndroidCamera::takePicture(), QQuickContext2D::toImage(), QtAndroidInput::touchAdd(), QV4::GCStateMachine::transition(), SearchSuggestionReply::triggerDone(), AndroidCamera::unlock(), QAnimationTimer::unregisterAnimation(), QQmlAnimationTimer::unregisterAnimation(), QGraphicsItem::unsetCursor(), QGraphicsScene::update(), QAndroidPlatformIntegration::updateColorScheme(), QPlatformCamera::updateError(), QTableView::updateGeometries(), QTreeView::updateGeometries(), QQuick3DViewport::updatePaintNode(), QQuick3DRuntimeLoader::updateSpatialNode(), QGeoTiledMappingManagerEngine::updateTileRequests(), QGeoTileFetcherNokia::versionFetched(), QT_BEGIN_NAMESPACE::windowForDrag(), wrapInFunction(), QBuffer::writeData(), QSslSocket::writeData(), QBluetoothSocketPrivateBluez::writeData(), QNearFieldTargetPrivateImpl::writeNdefMessages(), OrgBluezGattCharacteristic1Adaptor::WriteValue(), and OrgBluezGattDescriptor1Adaptor::WriteValue().
|
inlinestatic |
Definition at line 398 of file qobjectdefs.h.
References arguments, and Qt::AutoConnection.
|
inlinestatic |
Definition at line 506 of file qobjectdefs.h.
References args, Qt::AutoConnection, and R.
|
inlinestatic |
Definition at line 477 of file qobjectdefs.h.
|
inlinestatic |
Definition at line 462 of file qobjectdefs.h.
|
inlinestatic |
Definition at line 435 of file qobjectdefs.h.
References qReturnArg(), R, and ret.
|
inlinestatic |
Definition at line 491 of file qobjectdefs.h.
References args, Qt::AutoConnection, and ret.
|
inlinestatic |
Definition at line 452 of file qobjectdefs.h.
References Qt::AutoConnection, and ret.
Definition at line 329 of file qmetaobject.cpp.
Referenced by BindingFixer::BindingFixer(), QQmlListReference::QQmlListReference(), QMetaProperty::bindable(), doActivate(), QV4::Heap::QmlListWrapper::init(), QQmlAnyBinding::installOn(), QMetaMethodInvoker::invokeImpl(), makeArgs(), QQmlObjectOrGadget::metacall(), QQmlVMEMetaObject::metaCall(), QQmlDMObjectDataMetaObject::metaCall(), QQuickPressHandler::mousePressEvent(), QQuickPressHandler::mouseReleaseEvent(), QMetaCallEvent::placeMetaCall(), QMetaProperty::read(), QQmlGadgetPtrWrapper::read(), QQmlProperty::reset(), QMetaProperty::reset(), QV4::QObjectWrapper::setProperty(), QQmlBinding::slowWrite(), QQuickPressHandler::timerEvent(), QQmlVMEMetaObjectEndpoint::tryConnect(), QV4::QObjectWrapper::virtualMetacall(), QV4::QQmlTypeWrapper::virtualMetacall(), QQmlGadgetPtrWrapper::write(), QMetaProperty::write(), QV4::QQmlValueTypeWrapper::write(), and QQmlPropertyPrivate::writeEnumProperty().
QMetaType QMetaObject::metaType | ( | ) | const |
Definition at line 413 of file qmetaobject.cpp.
References className(), d, QMetaType::fromName(), and priv().
Referenced by VDMAbstractItemModelDataType::createItem(), VDMListDelegateDataType::createItem(), and QQmlTypePrivate::metaObjectForValueType().
QMetaMethod QMetaObject::method | ( | int | index | ) | const |
Returns the meta-data for the method with the given index.
Definition at line 1168 of file qmetaobject.cpp.
References d, i, methodOffset(), and priv().
Referenced by QMetaObjectBuilder::addMetaObject(), QTextDocument::loadResource(), QDBusInterfacePrivate::metacall(), QQmlVMEMetaObject::metaCall(), QQmlPropertyData::metaMethod(), QQmlMetaObject::methodReturnType(), QQmlPropertyData::name(), QMetaProperty::notifySignal(), and printMethodNotFoundWarning().
int QMetaObject::methodCount | ( | ) | const |
Returns the number of methods in this class, including the number of methods provided by each base class.
These include signals and slots as well as normal member functions.
Use code like the following to obtain a QStringList containing the methods specific to a given class:
Definition at line 565 of file qmetaobject.cpp.
Referenced by QMetaObjectBuilder::addMetaObject(), QQmlDMObjectDataMetaObject::createProperty(), QQmlPropertyCache::invalidate(), printMethodNotFoundWarning(), and QQmlPropertyCache::update().
int QMetaObject::methodOffset | ( | ) | const |
Returns the method offset for this class; i.e.
the index position of this class's first member function.
The offset is the sum of all the methods in the class's superclasses (which is always positive since QObject has the deleteLater() slot and a destroyed() signal).
Definition at line 465 of file qmetaobject.cpp.
Referenced by QMetaObjectBuilder::addMetaObject(), QQmlDMObjectDataMetaObject::createProperty(), QQmlOpenMetaObjectTypePrivate::init(), QDBusInterfacePrivate::metacall(), method(), QMetaMethod::methodIndex(), QMetaProperty::notifySignalIndex(), and QQmlMetaObject::resolveGadgetMethodOrPropertyIndex().
|
inline |
Constructs a new instance of this class and returns the new object, or \nullptr if no suitable constructor is available. The types of the arguments arguments will be used to find a matching constructor, and then forwarded to it the same way signal-slot connections do.
Note that only constructors that are declared with the Q_INVOKABLE modifier are made available through the meta-object system.
Definition at line 537 of file qobjectdefs.h.
References arguments, and QtPrivate::invokeMethodHelper().
|
static |
Normalizes the signature of the given method.
Qt uses normalized signatures to decide whether two given signals and slots are compatible. Normalization reduces whitespace to a minimum, moves 'const' to the front where appropriate, removes 'const' from value types and replaces const references with values.
Definition at line 1364 of file qmetaobject.cpp.
References d, method, qNormalizeType(), and qRemoveWhitespace().
Referenced by QtAndroidQuickViewEmbedding::addRootObjectSignalListener(), QObject::connect(), QObject::disconnect(), QMetaObjectBuilder::indexOfConstructor(), QMetaObjectBuilder::indexOfMethod(), QMetaObjectBuilder::indexOfSignal(), QMetaObjectBuilder::indexOfSlot(), QDBusConnectionPrivate::prepareHook(), qWaitForSignal(), QObject::receivers(), QDBusAbstractAdaptor::setAutoRelaySignals(), QDBusPendingCallPrivate::setReplyCallback(), signalForMember(), and wrapInFunction().
|
static |
Normalizes a type.
See QMetaObject::normalizedSignature() for a description on how Qt normalizes.
Example:
Definition at line 1348 of file qmetaobject.cpp.
References qstrlen().
Referenced by QMetaMethod::invokeOnGadget(), QQmlJSCodeGenerator::metaTypeFromName(), qMetaTypeTypeImpl(), QMetaType::qRegisterMetaType(), qRegisterNormalizedMetaTypeImplementation(), QMetaMethodBuilder::setReturnType(), and wrapInFunction().
|
inline |
Definition at line 663 of file qobjectdefs.h.
Connection & QMetaObject::operator= | ( | const Connection & | other | ) |
QMetaProperty QMetaObject::property | ( | int | index | ) | const |
Returns the meta-data for the property with the given index.
If no such property exists, a null QMetaProperty is returned.
Definition at line 1203 of file qmetaobject.cpp.
References d, i, priv(), and propertyOffset().
Referenced by QQmlVMEResolvedList::QQmlVMEResolvedList(), QMetaObjectBuilder::addMetaObject(), VDMListDelegateDataType::createMissingProperties(), doWriteProperties(), doWriteProperties(), doWriteProperties(), QQmlDesignerMetaObject::metaCall(), QQmlPropertyData::name(), QQmlDesignerMetaObject::notifyPropertyChange(), QObject::property(), QQmlGadgetPtrWrapper::property(), readObjectProperty(), removePendingQPropertyBinding(), VDMListDelegateDataType::setValue(), QQuick3DCustomMaterial::updateSpatialNode(), and VDMListDelegateDataType::value().
int QMetaObject::propertyCount | ( | ) | const |
Returns the number of properties in this class, including the number of properties provided by each base class.
Use code like the following to obtain a QStringList containing the properties specific to a given class:
Definition at line 603 of file qmetaobject.cpp.
Referenced by QMetaObjectBuilder::addMetaObject(), VDMListDelegateDataType::columnCount(), VDMListDelegateDataType::createMissingProperties(), VDMListDelegateDataType::createProperty(), QQmlDMObjectDataMetaObject::createProperty(), VDMListDelegateDataType::createPropertyIfMissing(), doWriteProperties(), doWriteProperties(), doWriteProperties(), VDMListDelegateDataType::emitAllSignals(), QQmlPropertyCache::invalidate(), QQmlMetaObject::propertyCount(), QQmlPropertyCache::update(), and userProperty().
int QMetaObject::propertyOffset | ( | ) | const |
Returns the property offset for this class; i.e.
the index position of this class's first property.
The offset is the sum of all the properties in the class's superclasses (which is always positive since QObject has the name() property).
Definition at line 508 of file qmetaobject.cpp.
Referenced by QMetaObjectBuilder::addMetaObject(), QMetaProperty::bindable(), QQmlDMObjectDataMetaObject::createProperty(), QQmlOpenMetaObjectTypePrivate::init(), property(), QMetaProperty::propertyIndex(), QMetaProperty::read(), QMetaProperty::reset(), QQmlMetaObject::resolveGadgetMethodOrPropertyIndex(), QQuick3DCustomMaterial::updateSpatialNode(), QQuick3DEffect::updateSpatialNode(), and QMetaProperty::write().
Definition at line 317 of file qmetaobject.cpp.
References d, priv(), and Q_ASSERT.
Referenced by callConstructor().
|
inlinestaticconstexpr |
Definition at line 561 of file qobjectdefs.h.
Referenced by VDMListDelegateDataType::metaObjectFromType().
|
inline |
Returns the meta-object of the superclass, or \nullptr if there is no such object.
Definition at line 676 of file qobjectdefs.h.
References d.
Referenced by QMetaObjectBuilder::addMetaObject(), availableRevisions(), QQmlPropertyCache::createStandalone(), QMetaObjectPrivate::firstMethod(), metaObjectSignalCount(), QQmlMetaTypeData::propertyCache(), QQmlMetaObject::resolveGadgetMethodOrPropertyIndex(), QQmlInterceptorMetaObject::toDynamicMetaObject(), QQuick3DCustomMaterial::updateSpatialNode(), and QQuick3DEffect::updateSpatialNode().
|
inlinenoexcept |
Definition at line 668 of file qobjectdefs.h.
References other(), and qt_ptr_swap().
QString QMetaObject::tr | ( | const char * | s, |
const char * | c, | ||
int | n = -1 ) const |
Definition at line 402 of file qmetaobject.cpp.
References className(), and QCoreApplication::translate().
QMetaProperty QMetaObject::userProperty | ( | ) | const |
Returns the property that has the USER
flag set to true.
Definition at line 1222 of file qmetaobject.cpp.
References i, QMetaProperty::isUser(), property, and propertyCount().
|
friend |
Definition at line 650 of file qobjectdefs.h.
|
friend |
Definition at line 642 of file qobjectdefs.h.
|
friend |
Definition at line 648 of file qobjectdefs.h.
|
friend |
Definition at line 649 of file qobjectdefs.h.
|
friend |
Definition at line 641 of file qobjectdefs.h.
struct QMetaObject::Data QMetaObject::d |
Referenced by QMetaObjectBuilder::addMetaObject(), buildMetaObject(), classInfo(), classInfoCount(), classInfoOffset(), computeOffsets(), constructor(), constructorCount(), enumerator(), enumeratorCount(), enumeratorOffset(), indexOfConstructor(), QMetaObjectPrivate::indexOfMethodRelative(), indexOfProperty(), QQmlTypePrivate::init(), QDBusMetaObject::inputTypesForMethod(), QMetaMethod::invokeOnGadget(), QMetaEnum::key(), QMetaEnum::keysToValue(), QMetaEnum::keyToValue(), QMetaObjectPrivate::memberIndexes(), QQmlObjectOrGadget::metacall(), QMetaEnum::metaType(), QMetaProperty::metaType(), metaType(), method(), methodCount(), methodOffset(), normalizedSignature(), QDBusMetaObject::outputTypesForMethod(), QMetaMethod::parameterMetaType(), property(), propertyCount(), QDBusMetaObject::propertyMetaType(), propertyOffset(), QQmlMetaType::proxyData(), QMetaProperty::read(), QMetaProperty::readOnGadget(), QMetaProperty::reset(), QMetaProperty::resetOnGadget(), QMetaMethod::returnMetaType(), QMetaMethod::revision(), QMetaMethod::signature(), static_metacall(), superClass(), QMetaEnum::value(), QMetaEnum::valueToKey(), QMetaEnum::valueToKeys(), QV4::QQmlValueTypeWrapper::virtualPut(), QMetaProperty::write(), QMetaProperty::writeOnGadget(), and QMetaProperty::writeOnGadget().