Qt 4.8
|
The QMetaObject class contains meta-information about Qt objects. More...
#include <qobjectdefs.h>
Public Functions | |
QObject * | cast (QObject *obj) const |
Returns obj if object obj inherits from this meta-object; otherwise returns 0. More... | |
const QObject * | cast (const QObject *obj) const |
Returns obj if object obj inherits from this meta-object; otherwise returns 0. More... | |
QMetaClassInfo | classInfo (int index) const |
Returns the meta-data for the item of class information with the given index. More... | |
int | classInfoCount () const |
Returns the number of items of class information in this class. More... | |
int | classInfoOffset () const |
Returns the class information offset for this class; i.e. More... | |
const char * | className () const |
Returns the class name. More... | |
QMetaMethod | constructor (int index) const |
Returns the meta-data for the constructor with the given index. More... | |
int | constructorCount () const |
Returns the number of constructors in this class. More... | |
QMetaEnum | enumerator (int index) const |
Returns the meta-data for the enumerator with the given index. More... | |
int | enumeratorCount () const |
Returns the number of enumerators in this class. More... | |
int | enumeratorOffset () const |
Returns the enumerator offset for this class; i.e. More... | |
int | indexOfClassInfo (const char *name) const |
Finds class information item name and returns its index; otherwise returns -1. More... | |
int | indexOfConstructor (const char *constructor) const |
Finds constructor and returns its index; otherwise returns -1. More... | |
int | indexOfEnumerator (const char *name) const |
Finds enumerator name and returns its index; otherwise returns -1. More... | |
int | indexOfMethod (const char *method) const |
Finds method and returns its index; otherwise returns -1. More... | |
int | indexOfProperty (const char *name) const |
Finds property name and returns its index; otherwise returns -1. More... | |
int | indexOfSignal (const char *signal) const |
Finds signal and returns its index; otherwise returns -1. More... | |
int | indexOfSlot (const char *slot) const |
Finds slot and returns its index; otherwise returns -1. More... | |
QMetaMethod | method (int index) const |
Returns the meta-data for the method with the given index. More... | |
int | methodCount () const |
Returns the number of methods known to the meta-object system in this class, including the number of properties provided by each base class. More... | |
int | methodOffset () const |
Returns the method offset for this class; i.e. More... | |
QObject * | newInstance (QGenericArgument val0=QGenericArgument(0), 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()) const |
Constructs a new instance of this class. More... | |
QMetaProperty | property (int index) const |
Returns the meta-data for the property with the given index. More... | |
int | propertyCount () const |
Returns the number of properties in this class, including the number of properties provided by each base class. More... | |
int | propertyOffset () const |
Returns the property offset for this class; i.e. More... | |
int | static_metacall (Call, int, void **) const |
const QMetaObject * | superClass () const |
Returns the meta-object of the superclass, or 0 if there is no such object. More... | |
QString | tr (const char *s, const char *c) const |
QString | tr (const char *s, const char *c, int n) const |
QString | trUtf8 (const char *s, const char *c) const |
QString | trUtf8 (const char *s, const char *c, int n) const |
QMetaProperty | userProperty () const |
Returns the property that has the USER flag set to true. More... | |
Public Variables | |
struct { | |
const uint * data | |
const void * extradata | |
const char * stringdata | |
const QMetaObject * superdata | |
} | d |
The QMetaObject class contains meta-information about Qt objects.
The Qt 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:
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 304 of file qobjectdefs.h.
enum QMetaObject::Call |
Enumerator | |
---|---|
InvokeMetaMethod | |
ReadProperty | |
WriteProperty | |
ResetProperty | |
QueryPropertyDesignable | |
QueryPropertyScriptable | |
QueryPropertyStored | |
QueryPropertyEditable | |
QueryPropertyUser | |
CreateInstance |
Definition at line 448 of file qobjectdefs.h.
|
static |
Definition at line 3690 of file qobject.cpp.
Referenced by QDeclarativeVMEMetaObject::list_append(), QDeclarativeVMEMetaObject::list_clear(), QDeclarativeVMEMetaObject::listChanged(), QDBusInterfacePrivate::metacall(), QDeclarativeProxyMetaObject::metaCall(), QDeclarativeOpenMetaObject::metaCall(), QDeclarativeVMEMetaObject::metaCall(), QAxBase::qt_metacall(), QDBusAdaptorConnector::relaySignal(), QDeclarativeContext::setContextProperty(), QDeclarativeOpenMetaObject::setValue(), and QDeclarativeVMEMetaObject::writeVarProperty().
|
static |
Definition at line 3496 of file qobject.cpp.
|
static |
Definition at line 3504 of file qobject.cpp.
|
static |
Definition at line 3702 of file qobject.cpp.
|
static |
Definition at line 390 of file qobject.cpp.
Referenced by QAction::activate(), and QPointer< QAbstractButton >::QPointer().
Returns obj if object obj inherits from this meta-object; otherwise returns 0.
Definition at line 283 of file qmetaobject.cpp.
Referenced by QScript::QtFunction::execute(), qobject_cast(), qt_qFindChild_helper(), and qt_qFindChildren_helper().
Returns obj if object obj inherits from this meta-object; otherwise returns 0.
Definition at line 304 of file qmetaobject.cpp.
Definition at line 435 of file qobject.cpp.
Referenced by QPointer< QAbstractButton >::operator=().
|
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 964 of file qmetaobject.cpp.
Referenced by QObject::connect(), QObject::inherits(), and signalForMember().
QMetaClassInfo QMetaObject::classInfo | ( | int | index | ) | const |
Returns the meta-data for the item of class information with the given index.
Example:
Definition at line 941 of file qmetaobject.cpp.
Referenced by QAccessibleObjectPrivate::actionList(), QDBusAdaptorConnector::addAdaptor(), QMetaObjectBuilder::addMetaObject(), QAxFactory::classID(), classIDL(), clone(), QClassFactory::CreateInstanceHelper(), QAxClass< T >::createObject(), QDeclarativeMetaType::defaultMethod(), QDeclarativeMetaType::defaultProperty(), QDeclarativeCompiler::deferredProperties(), QAxFactory::eventsID(), QAxFactory::exposeToSuperClass(), QClassFactory::GetLicInfo(), QAxFactory::hasStockEvents(), QAxFactory::interfaceID(), QAxServerBase::Invoke(), QAxServerBase::Load(), qax_clean_type(), qax_generateDocumentation(), qax_noSuchFunction(), QClassFactory::QClassFactory(), qDBusGenerateMetaObjectXml(), QAxBase::querySubObject(), QAxFactory::registerActiveObject(), QAxServerBase::registerActiveObject(), QAxServerBase::Save(), and QAxFactory::validateLicenseKey().
int QMetaObject::classInfoCount | ( | ) | const |
Returns the number of items of class information in this class.
Definition at line 519 of file qmetaobject.cpp.
Referenced by QMetaObjectBuilder::addMetaObject(), and clone().
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 424 of file qmetaobject.cpp.
Referenced by QMetaObjectBuilder::addMetaObject(), classInfo(), clone(), indexOfClassInfo(), qDBusGenerateMetaObjectXml(), and qDBusInterfaceFromMetaObject().
|
inline |
Returns the class name.
Definition at line 491 of file qobjectdefs.h.
Referenced by activate(), ActiveObject::ActiveObject(), QGraphicsLayoutPrivate::addChildLayoutItem(), QLayout::addChildWidget(), QAccessibleWidget::addControllingSignal(), QMetaObjectBuilder::addMetaObject(), QAxScriptManager::addObject(), QState::addTransition(), QGridLayout::addWidget(), QMacStylePrivate::aquaSizeConstrain(), QStyleSheetStyleSelector::attribute(), check_and_warn_compat(), check_method_code(), check_parent_thread(), check_signal_macro(), QCoreApplicationPrivate::checkReceiverThread(), checkWidget(), classIDL(), QDeclarativeCompiler::compileAlias(), QObject::connect(), QAxClass< T >::createObject(), QLayoutPrivate::createSpacerItem(), QObject::disconnect(), QObject::dumpObjectInfo(), dumpRecursive(), QProxyStylePrivate::ensureBaseStyle(), QApplicationPrivate::enterModal_sys(), err_method_notfound(), QCoreApplication::exec(), QScript::QObjectConnectionManager::execute(), QScript::QMetaObjectWrapperObject::execute(), QApplication::font(), fromScriptValue(), QScript::functionConnect(), QScript::functionDisconnect(), QApplicationPrivate::globalEventProcessor(), QDeclarativeOpenMetaObjectTypePrivate::init(), QNetworkReplyImplPrivate::initCacheSaveDevice(), invokeMethod(), keyTypeForObject(), QApplicationPrivate::leaveModal_sys(), make_widget_eventUPP(), QStyleSheetStyle::nativeFrameWidth(), newInstance(), QScriptEnginePrivate::newQObject(), QStyleSheetStyleSelector::nodeNameEquals(), QStyleSheetStyleSelector::nodeNames(), QDeclarativeEngineDebugService::objectData(), objectInheritsXAndXIsCloserThanY(), QDeclarativeDebugService::objectToString(), operator<<(), QApplication::palette(), parentWidget(), QObject::property(), ptr(), qax_generateDocumentation(), qax_readClassInfo(), qax_readInterfaceInfo(), QAxServerBase::QAxServerBase(), QTest::qExec(), QLayout::QLayout(), QScript::qmetaobjectProtoFuncClassName(), qmlExecuteDeferred(), QScript::qobjectProtoFuncToString(), QTest::qPrintDataTags(), QRenderRule::QRenderRule(), QTest::qSignalDumperCallback(), QTest::qSignalDumperCallbackEndSignal(), QTest::qSignalDumperCallbackSlot(), qt_adopted_thread_watcher_function(), qt_aqua_get_known_size(), qt_mac_send_modifiers_changed(), qt_nograb(), QAccessible::queryAccessibleInterface(), QMetaProperty::read(), QDeclarativeEnginePrivate::registerCompositeType(), QStateMachinePrivate::registerSignalTransition(), QDBusAdaptorConnector::relay(), QCoreApplicationPrivate::removePostedEvent(), QGraphicsLayoutPrivate::reparentChildItems(), QKeyMapper::sendKeyEvent(), QMetaObjectBuilder::serialize(), QNetworkReplyImplPrivate::setCachingEnabled(), QWidget::setLayout(), QObject::setProperty(), QDBusPendingCallPrivate::setReplyCallback(), QThreadPrivate::start(), QmlJSDebugger::AbstractLiveEditTool::titleForItem(), QDeclarativeObjectScriptClass::tostring(), QDeclarativeType::typeName(), QAccessible::updateAccessibility(), QDeclarativeQtScriptExpression::updateGuards(), QGLContext::updatePaintDevice(), VARIANTToQVariant(), writeProperty(), and QDeclarativeInfo::~QDeclarativeInfo().
|
static |
if signal_index is -1, then we effectively connect all signals from the sender to the receiver's slot
Definition at line 3194 of file qobject.cpp.
Referenced by QScript::QObjectConnectionManager::addSignalHandler(), QDeclarativePropertyPrivate::connect(), QDeclarativeVMEMetaObject::connectAlias(), QDBusAdaptorConnector::connectAllSignals(), QDeclarativePixmap::connectDownloadProgress(), QDeclarativePixmap::connectFinished(), QDeclarativeRectanglePrivate::getPen(), QDeclarativeBorderImagePrivate::getScaleGrid(), QDeclarativeFlickablePrivate::init(), QDeclarativePathViewPrivate::init(), QAxServerBase::internalActivate(), QAxServerBase::internalConnect(), QDeclarativeBorderImage::load(), menuItemEntry(), QDeclarativePixmapReader::networkRequestDone(), QDeclarativePixmapReader::processJob(), QSignalSpy::QSignalSpy(), QStateMachinePrivate::registerSignalTransition(), QTextControlPrivate::setContent(), and QDeclarativeRectangle::setGradient().
|
static |
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 object name button1
. The slot to catch the button's clicked()
signal would be:
Definition at line 3406 of file qobject.cpp.
QMetaMethod QMetaObject::constructor | ( | int | index | ) | const |
Returns the meta-data for the constructor with the given index.
Definition at line 814 of file qmetaobject.cpp.
Referenced by QMetaObjectBuilder::addMetaObject(), and QScript::metaMethod().
int QMetaObject::constructorCount | ( | ) | const |
Returns the number of constructors in this class.
Definition at line 445 of file qmetaobject.cpp.
Referenced by QMetaObjectBuilder::addMetaObject(), and QScript::QMetaObjectWrapperObject::execute().
|
static |
Definition at line 3276 of file qobject.cpp.
Referenced by QDeclarativeBoundSignal::disconnect(), QDBusAdaptorConnector::disconnectAllSignals(), QScript::QObjectConnectionManager::removeSignalHandler(), QTextControlPrivate::setContent(), QDeclarativeRectangle::setGradient(), QAxServerBase::UIDeactivate(), and QStateMachinePrivate::unregisterSignalTransition().
|
static |
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 3290 of file qobject.cpp.
Referenced by QDeclarativeNotifierEndpoint::disconnect().
QMetaEnum QMetaObject::enumerator | ( | int | index | ) | const |
Returns the meta-data for the enumerator with the given index.
Definition at line 850 of file qmetaobject.cpp.
Referenced by QMetaObjectBuilder::addMetaObject(), QScript::callQtMethod(), classIDL(), QScript::QMetaObjectWrapperObject::deleteProperty(), QAxBase::dynamicCallHelper(), QDeclarativeObjectMethodScriptClass::enumType(), QDeclarativeCompiler::evaluateEnum(), QScript::QMetaObjectWrapperObject::getOwnPropertyDescriptor(), QScript::QMetaObjectWrapperObject::getOwnPropertyNames(), QScript::QMetaObjectWrapperObject::getOwnPropertySlot(), QScript::indexOfMetaEnum(), property(), QScript::QMetaObjectWrapperObject::put(), qax_generateDocumentation(), QBBButtonEventNotifier::QBBButtonEventNotifier(), QDeclarativeBoundSignalParameters::QDeclarativeBoundSignalParameters(), QDeclarativeTypeNameScriptClass::queryProperty(), QDeclarativeCompiler::testQualifiedEnumAssignment(), and QmlJSDebugger::InspectorProtocol::toString().
int QMetaObject::enumeratorCount | ( | ) | const |
Returns the number of enumerators in this class.
Definition at line 481 of file qmetaobject.cpp.
Referenced by QMetaObjectBuilder::addMetaObject(), classIDL(), QScript::QMetaObjectWrapperObject::deleteProperty(), QAxBase::dynamicCallHelper(), QDeclarativeObjectMethodScriptClass::enumType(), QDeclarativeCompiler::evaluateEnum(), QScript::QMetaObjectWrapperObject::getOwnPropertyDescriptor(), QScript::QMetaObjectWrapperObject::getOwnPropertyNames(), QScript::QMetaObjectWrapperObject::getOwnPropertySlot(), QScript::indexOfMetaEnum(), QScript::QMetaObjectWrapperObject::put(), qax_generateDocumentation(), QDeclarativeBoundSignalParameters::QDeclarativeBoundSignalParameters(), QDeclarativeTypeNameScriptClass::queryProperty(), and QDeclarativeCompiler::testQualifiedEnumAssignment().
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 382 of file qmetaobject.cpp.
Referenced by QMetaObjectBuilder::addMetaObject(), classIDL(), enumerator(), and indexOfEnumerator().
int QMetaObject::indexOfClassInfo | ( | const char * | name | ) | const |
Finds class information item name and returns its index; otherwise returns -1.
Definition at line 788 of file qmetaobject.cpp.
Referenced by QAccessibleObjectPrivate::actionList(), QDBusAdaptorConnector::addAdaptor(), QAxFactory::classID(), classIDL(), clone(), QClassFactory::CreateInstanceHelper(), QAxClass< T >::createObject(), QDeclarativeMetaType::defaultMethod(), QDeclarativeMetaType::defaultProperty(), QDeclarativeCompiler::deferredProperties(), QAxFactory::eventsID(), QAxFactory::exposeToSuperClass(), QClassFactory::GetLicInfo(), QAxFactory::hasStockEvents(), QAxFactory::interfaceID(), QAxServerBase::InternalQueryInterface(), QAxServerBase::Invoke(), QAxServerBase::Load(), qax_clean_type(), qax_generateDocumentation(), qax_noSuchFunction(), QClassFactory::QClassFactory(), qDBusGenerateMetaObjectXml(), qDBusInterfaceFromMetaObject(), QAxFactory::registerActiveObject(), QAxServerBase::registerActiveObject(), QAxServerBase::Save(), and QAxFactory::validateLicenseKey().
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 582 of file qmetaobject.cpp.
Referenced by newInstance().
int QMetaObject::indexOfEnumerator | ( | const char * | name | ) | const |
Finds enumerator name and returns its index; otherwise returns -1.
Definition at line 734 of file qmetaobject.cpp.
Referenced by QAxBase::dynamicCallHelper(), QAxBase::internalInvoke(), QAxServerBase::Invoke(), property(), QBBButtonEventNotifier::QBBButtonEventNotifier(), and QAxServerBase::qt_metacall().
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 603 of file qmetaobject.cpp.
Referenced by QDeclarativeMetaType::defaultMethod(), QObject::disconnect(), QDBusConnectionPrivate::findSlot(), QScript::QObjectDelegate::getOwnPropertyDescriptor(), QScript::QObjectDelegate::getOwnPropertySlot(), QNetworkReply::ignoreSslErrors(), QMetaObjectPrivate::indexOfSignalRelative(), invokeMethod(), QTest::invokeMethod(), QStyle::layoutSpacing(), QScript::QObjectDelegate::put(), QDeclarativeExpression::QDeclarativeExpression(), QDeclarativeWatchProxy::QDeclarativeWatchProxy(), QSignalSpy::QSignalSpy(), QTest::qtest_qParseArgs(), QNetworkReply::setSslConfiguration(), and QNetworkReply::sslConfiguration().
int QMetaObject::indexOfProperty | ( | const char * | name | ) | const |
Finds property name and returns its index; otherwise returns -1.
Definition at line 757 of file qmetaobject.cpp.
Referenced by QDeclarativeCompiler::buildValueTypeProperty(), classIDL(), clone(), QDeclarativeCompiler::compileAlias(), ShaderEffectItem::connectPropertySignals(), QDeclarativePropertyCache::create(), QDeclarativeMetaType::defaultProperty(), QScript::QObjectDelegate::deleteProperty(), QAxBase::dynamicCallHelper(), QAxEventSink::findProperty(), QDeclarativePropertyPrivate::findSignalByName(), QScript::QObjectDelegate::getOwnPropertyDescriptor(), QScript::QObjectDelegate::getOwnPropertySlot(), QDeclarativeCompiler::indexOfProperty(), QDeclarativePropertyPrivate::initProperty(), QAxServerBase::Invoke(), QScript::isEnumerableMetaProperty(), QAxServerBase::Load(), QAxEventSink::OnChanged(), QDeclarativeBindingCompilerPrivate::parseName(), QObject::property(), QScript::QObjectDelegate::put(), qDBusPropertyGet(), QDeclarativeValueTypeScriptClass::queryProperty(), QStyleSheetStyle::setProperties(), QObject::setProperty(), setupDBusInterface(), and writeProperty().
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 627 of file qmetaobject.cpp.
Referenced by QAxServerBase::ActiveXProc(), QState::addTransition(), checkHRESULT(), QObject::disconnect(), QDeclarativeRectanglePrivate::getPen(), QDeclarativeBorderImagePrivate::getScaleGrid(), QDeclarativeFlickablePrivate::init(), QDeclarativePathViewPrivate::init(), QAxServerBase::internalActivate(), QAxEventSink::Invoke(), QDeclarativeKeysAttached::keyPressed(), QDeclarativeBorderImage::load(), menuItemEntry(), QAxEventSink::OnChanged(), QDeclarativePixmapReply::QDeclarativePixmapReply(), QtWndProc(), QStateMachinePrivate::registerSignalTransition(), QDeclarativePixmapReader::run(), QScriptEnginePrivate::scriptConnect(), QScriptEnginePrivate::scriptDisconnect(), QDBusAbstractAdaptor::setAutoRelaySignals(), QTextControlPrivate::setContent(), QDeclarativeRectangle::setGradient(), and QAxServerBase::UIDeactivate().
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 673 of file qmetaobject.cpp.
Referenced by QAxBase::dynamicCallHelper(), QDeclarativeRectanglePrivate::getPen(), QDeclarativeBorderImagePrivate::getScaleGrid(), QDeclarativeFlickablePrivate::init(), QDeclarativePathViewPrivate::init(), QAxServerBase::Invoke(), QDeclarativeBorderImage::load(), QDeclarativeImageBase::load(), qDBusUpdateDispatchStatus(), QDeclarativePixmapReader::run(), QDBusConnectionPrivate::setConnection(), QDeclarativeRectangle::setGradient(), QDeclarativeBorderImage::setGridScaledImage(), and QGraphicsView::viewportEvent().
|
static |
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.
The invocation can be either synchronous or asynchronous, depending on type:
If type is Qt::DirectConnection, the member will be invoked immediately.
If type is Qt::QueuedConnection, a QEvent will be sent and the member is invoked as soon as the application enters the main event loop.
If type is Qt::BlockingQueuedConnection, the method will be invoked in the same way as for Qt::QueuedConnection, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.
The return value of the member function call is placed in ret. If the invocation is asynchronous, the return value cannot be evaluated. You can pass up to ten arguments (val0, val1, val2, val3, val4, val5, val6, val7, val8, and val9) to the member function.
QGenericArgument and QGenericReturnArgument are internal helper classes. Because signals and slots can be dynamically invoked, you must enclose the arguments using the Q_ARG() and Q_RETURN_ARG() macros. Q_ARG() takes a type name and a const reference of that type; Q_RETURN_ARG() takes a type name and a non-const reference.
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 animateClick() slot on a QPushButton, use the following code:
With asynchronous method invocations, the parameters must be of types that are 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().
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 QString, one int and one double in the specified order, the call will fail.
Definition at line 1156 of file qmetaobject.cpp.
Referenced by QNetworkReplyImplPrivate::_q_bufferOutgoingDataFinished(), QHttpNetworkConnectionChannel::_q_disconnected(), QHttpNetworkConnectionChannel::_q_error(), QNetworkReplyImplPrivate::_q_networkSessionConnected(), QGraphicsScenePrivate::_q_polishItems(), QHttpPrivate::_q_slotClosed(), QHttpPrivate::_q_slotError(), QHttpPrivate::_q_slotReadyRead(), QHttpThreadDelegate::abortRequest(), QLayout::addChildWidget(), QHttpPrivate::addRequest(), QHttpNetworkConnectionChannel::allDone(), QAudioOutputPrivate::audioDeviceError(), QAudioInputPrivate::audioDeviceError(), QAudioInputPrivate::audioDeviceFull(), QAudioOutputPrivate::audioDeviceIdle(), QHttpNetworkConnectionChannel::closeAndResendCurrentRequest(), QHttpPrivate::closeConn(), QDeclarativeFolderListModel::componentComplete(), QAbstractSocket::connectToHost(), QGraphicsProxyWidget::createProxyForChildWidget(), QAbstractSocket::disconnectFromHost(), QMacStyle::drawControl(), QHttpSocketEngine::emitConnectionNotification(), QSocks5SocketEnginePrivate::emitConnectionNotification(), QHttpSocketEngine::emitReadNotification(), QSocks5SocketEnginePrivate::emitReadNotification(), QHttpNetworkConnectionPrivate::emitReplyError(), QHttpSocketEngine::emitWriteNotification(), QSocks5SocketEnginePrivate::emitWriteNotification(), QNetworkConfigurationManagerPrivate::enablePolling(), QAbstractItemModel::endResetModel(), QSocketNotifier::event(), QWinEventNotifier::event(), QWorkspace::event(), QObject::event(), QStyledItemDelegate::eventFilter(), QItemDelegate::eventFilter(), QPSQLDriverPrivate::exec(), QAudioInputPrivate::feedback(), QHttpThreadDelegate::finishedSlot(), QHttpThreadDelegate::finishedWithErrorSlot(), QAudioOutputPrivate::freeBlocks(), gtkStyleSetCallback(), QHttpNetworkConnectionChannel::handleStatus(), QHttpNetworkConnectionChannel::handleUnexpectedEOF(), QHttpPrivate::init(), QAudioOutputPrivate::inputReady(), QGraphicsSceneBspTreeIndexPrivate::invalidateSortCache(), QSqlDriver::isIdentifierEscaped(), jump(), QWaylandClipboard::keyboardFocus(), QNetworkReplyImplPrivate::migrateBackend(), QNetworkAccessFileBackend::open(), QDesktopServices::openUrl(), QNetworkConfigurationManagerPrivate::performAsyncConfigurationUpdate(), QNetworkConfigurationManagerPrivate::pollEngines(), QNetworkAccessHttpBackend::postRequest(), QStateMachinePrivate::processEvents(), QBBIntegration::QBBIntegration(), QBBSystemLocaleData::QBBSystemLocaleData(), QDBusAbstractAdaptor::QDBusAbstractAdaptor(), QDBusPendingCallWatcher::QDBusPendingCallWatcher(), QDisabledNetworkReply::QDisabledNetworkReply(), qEventCallback(), QTest::qInvokeTestMethodDataEntry(), QPatternist::QIODeviceDelegate::QIODeviceDelegate(), QNetworkReplyDataImpl::QNetworkReplyDataImpl(), QNetworkReplyFileImpl::QNetworkReplyFileImpl(), qNotificationCallback(), QHttpThreadDelegate::readBufferFreed(), QSslSocket::readData(), QHttpNetworkConnectionPrivate::readMoreLater(), QDeclarativeDebugServer::receiveMessage(), QTransportAuth::registerPolicyReceiver(), QHttpNetworkConnectionPrivate::removeReply(), QLayoutPrivate::reparentChildWidgets(), QNetworkManagerEngine::requestUpdate(), QHttpNetworkConnectionChannel::requeueCurrentlyPipelinedRequests(), QHttpNetworkConnectionPrivate::requeueRequest(), QProgressDialog::reset(), QAbstractItemModel::reset(), QHttpNetworkConnectionPrivate::resumeConnection(), QAccessibleTextEdit::scrollToSubstring(), QNetworkAccessHttpBackend::sendCacheContents(), QHttpNetworkConnectionChannel::sendRequest(), QDBusConnectionPrivate::setConnection(), QGraphicsItem::setCursor(), QDirModel::setData(), QDeclarativeFolderListModel::setFolder(), QDBusConnectionPrivate::setPeer(), QGraphicsScenePrivate::setScenePosItemEnabled(), QNetworkReplyImplPrivate::setup(), QBBClipboard::MimeData::setUserMimeData(), QAbstractScrollArea::setViewport(), QTableView::setWordWrap(), QHttpSocketEngine::setWriteNotificationEnabled(), QStyle::standardIcon(), QStateMachine::start(), QHttpThreadDelegate::startRequestSynchronously(), QSqlDriver::stripDelimiters(), QSqlDriver::subscribedToNotifications(), QSqlDriver::subscribeToNotification(), SxeRegistryLocker::SxeRegistryLocker(), QHttpThreadDelegate::synchronousFinishedSlot(), QHttpThreadDelegate::synchronousFinishedWithErrorSlot(), QSingleShotTimer::timerEvent(), QStatusBarPrivate::tryToShowSizeGrip(), QTransportAuth::unregisterPolicyReceiver(), QGraphicsItem::unsetCursor(), QSqlDriver::unsubscribeFromNotification(), QDeclarativeTimer::update(), QGraphicsScene::update(), QNetworkConfigurationManagerPrivate::updateConfigurations(), QTableView::updateGeometries(), QTreeView::updateGeometries(), QGraphicsWidget::updateGeometry(), QAbstractItemView::viewportEvent(), QBuffer::writeData(), QSslSocket::writeData(), and SxeRegistryLocker::~SxeRegistryLocker().
|
inlinestatic |
Definition at line 387 of file qobjectdefs.h.
|
inlinestatic |
Definition at line 404 of file qobjectdefs.h.
|
inlinestatic |
Definition at line 421 of file qobjectdefs.h.
Definition at line 249 of file qmetaobject.cpp.
Referenced by QDeclarativeObjectMethodScriptClass::callMethod(), QScript::callQtMethod(), QDeclarativeComponentPrivate::complete(), QDeclarativeNotifier::emitNotify(), QDeclarativeCompiledBindingsPrivate::findproperty(), QDeclarativePropertyPrivate::initProperty(), QMetaMethod::invoke(), QMetaProperty::isDesignable(), QMetaProperty::isScriptable(), QMetaProperty::isStored(), QMetaProperty::isUser(), QDeclarativeVMEMetaObject::metaCall(), QDeclarativeListScriptClass::newList(), QMetaCallEvent::placeMetaCall(), QDeclarativeObjectScriptClass::property(), QDeclarativeListReference::QDeclarativeListReference(), QDeclarativePointFValueType::read(), QDeclarativePointValueType::read(), QDeclarativeSizeFValueType::read(), QDeclarativeSizeValueType::read(), QDeclarativeRectFValueType::read(), QMetaProperty::read(), QDeclarativeRectValueType::read(), QDeclarativeVector2DValueType::read(), QDeclarativeVector3DValueType::read(), QDeclarativeVector4DValueType::read(), QDeclarativeQuaternionValueType::read(), QDeclarativeMatrix4x4ValueType::read(), QDeclarativeEasingValueType::read(), QDeclarativeFontValueType::read(), QDeclarativePropertyPrivate::readValueProperty(), QDeclarativeProperty::reset(), QMetaProperty::reset(), QDeclarativeCompiledBindingsPrivate::run(), QDeclarativeObjectScriptClass::setProperty(), QDeclarativeVisualDataModel::stringValue(), QDeclarativeBinding::update(), QPropertyAnimationPrivate::updateProperty(), QDeclarativePropertyPrivate::write(), QDeclarativePointFValueType::write(), QDeclarativePointValueType::write(), QDeclarativeSizeFValueType::write(), QDeclarativeSizeValueType::write(), QDeclarativeRectFValueType::write(), QMetaProperty::write(), QDeclarativeRectValueType::write(), QDeclarativeVector2DValueType::write(), QDeclarativeVector3DValueType::write(), QDeclarativeVector4DValueType::write(), QDeclarativeQuaternionValueType::write(), QDeclarativeMatrix4x4ValueType::write(), QDeclarativeEasingValueType::write(), QDeclarativeFontValueType::write(), and QDeclarativePropertyPrivate::writeEnumProperty().
QMetaMethod QMetaObject::method | ( | int | index | ) | const |
Returns the meta-data for the method with the given index.
Definition at line 830 of file qmetaobject.cpp.
Referenced by QAccessibleObjectPrivate::actionList(), QGraphicsScene::addItem(), QMetaObjectBuilder::addMetaObject(), QScript::QObjectConnectionManager::addSignalHandler(), QDeclarativePropertyCache::append(), QDeclarativeEngineDebugService::buildObjectDump(), QDeclarativeObjectMethodScriptClass::callOverloaded(), QDBusAbstractInterface::callWithArgumentList(), checkConnectArgs(), classIDL(), QDeclarativeObjectMethodScriptClass::connect(), QDeclarativePropertyPrivate::connect(), QObject::connect(), connectSlotsByName(), QDeclarativePropertyCache::create(), QDeclarativeMetaType::defaultMethod(), QDeclarativeNotifierEndpoint::disconnect(), QDeclarativeObjectMethodScriptClass::disconnect(), QObject::dumpObjectInfo(), QAxBase::dynamicCallHelper(), QScript::QObjectConnectionManager::execute(), QDeclarativePropertyPrivate::findSignalByName(), QDBusConnectionPrivate::findSlot(), findSlot(), QScript::functionConnect(), QScript::functionDisconnect(), QAxScript::functions(), generateInterfaceXml(), QScript::QObjectDelegate::getOwnPropertyDescriptor(), QScript::QObjectDelegate::getOwnPropertyNames(), QScript::QObjectDelegate::getOwnPropertySlot(), QStateMachinePrivate::handleTransitionSignal(), indexOfMethod(), QDeclarativeTypePrivate::init(), QAxServerBase::internalConnect(), QAxBase::internalInvoke(), QAxServerBase::Invoke(), QAxEventSink::Invoke(), invokeMethod(), QTest::invokeMethod(), QDeclarativeKeysAttached::keyPressed(), QDBusInterfacePrivate::metacall(), QDeclarativeProxyMetaObject::metaCall(), QScript::metaMethod(), QDeclarativeProperty::method(), QScript::QtFunction::mostGeneralMethod(), QDeclarativePropertyCache::Data::name(), QMetaProperty::notifySignal(), QScript::QtFunction::overloadedIndexes(), QScript::QObjectDelegate::put(), qax_generateDocumentation(), qax_noSuchFunction(), qDBusUpdateDispatchStatus(), QTest::qInvokeTestMethods(), QTest::qPrintDataTags(), QTest::qPrintTestSlots(), QScriptContextInfoPrivate::QScriptContextInfoPrivate(), QTest::qSignalDumperCallback(), QTest::qSignalDumperCallbackSlot(), QSignalSpy::QSignalSpy(), QAxBase::qt_metacall(), QAxServerBase::qt_metacall(), queued_activate(), QStateMachinePrivate::registerSignalTransition(), QDeclarativeObjectMethodScriptClass::relatedMethod(), QDBusAdaptorConnector::relay(), QDBusConnectionPrivate::relaySignal(), QScript::QObjectConnectionManager::removeSignalHandler(), QDBusAbstractAdaptor::setAutoRelaySignals(), and setupDBusInterface().
int QMetaObject::methodCount | ( | ) | const |
Returns the number of methods known to the meta-object system in this class, including the number of properties provided by each base class.
These include signals and slots as well as member functions declared with the Q_INVOKABLE macro.
Use code like the following to obtain a QStringList containing the methods specific to a given class:
Definition at line 465 of file qmetaobject.cpp.
Referenced by QAccessibleObjectPrivate::actionList(), QMetaObjectBuilder::addMetaObject(), QDeclarativePropertyCache::append(), QDBusAbstractInterface::callWithArgumentList(), classIDL(), connectSlotsByName(), QDeclarativePropertyCache::create(), QDeclarativePropertyPrivate::findSignalByName(), findSlot(), QAxScript::functions(), generateInterfaceXml(), QScript::QObjectDelegate::getOwnPropertyDescriptor(), QScript::QObjectDelegate::getOwnPropertyNames(), QScript::QObjectDelegate::getOwnPropertySlot(), QDeclarativeBoundSignal::init(), QDeclarativeTypePrivate::init(), QAxServerBase::internalConnect(), QAxBase::internalInvoke(), QAxServerBase::Invoke(), invokeMethod(), QDeclarativeProxyMetaObject::metaCall(), QDeclarativeVMEMetaObject::metaCall(), qax_generateDocumentation(), qax_noSuchFunction(), qDBusGenerateMetaObjectXml(), QDeclarativeCompiledBindings::QDeclarativeCompiledBindings(), QTest::qInvokeTestMethods(), QTest::qPrintDataTags(), QTest::qPrintTestSlots(), QSignalSpy::QSignalSpy(), QAxBase::qt_metacall(), QDeclarativeObjectMethodScriptClass::relatedMethod(), QDBusAbstractAdaptor::setAutoRelaySignals(), QDeclarativeContext::setContextProperty(), setupDBusInterface(), and QDeclarativePropertyCache::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 360 of file qmetaobject.cpp.
Referenced by activate(), QMetaObjectBuilder::addMetaObject(), QScript::QObjectConnectionManager::addSignalHandler(), QDeclarativePropertyCache::append(), QScript::callQtMethod(), classIDL(), QMetaObjectPrivate::connect(), QObject::connect(), QDeclarativeVMEMetaObject::connectAlias(), QDeclarativeVMEMetaObject::connectAliasSignal(), flush_vme_signal(), QAxScript::functions(), QScript::QObjectDelegate::getOwnPropertyDescriptor(), QScript::QObjectDelegate::getOwnPropertyNames(), QScript::QObjectDelegate::getOwnPropertySlot(), indexOfMethod(), indexOfSignal(), indexOfSlot(), QAxBase::internalInvoke(), QDeclarativeVMEMetaObject::listChanged(), QDBusInterfacePrivate::metacall(), QDeclarativeProxyMetaObject::metaCall(), QDeclarativeVMEMetaObject::metaCall(), method(), methodIndexToSignalIndex(), QMetaProperty::notifySignalIndex(), QScript::QObjectDelegate::put(), qax_generateDocumentation(), QDeclarativeVMEMetaObject::QDeclarativeVMEMetaObject(), QAxBase::qt_metacall(), QStateMachinePrivate::registerSignalTransition(), QScript::QObjectConnectionManager::removeSignalHandler(), QDeclarativeVMEMetaObject::setVmeMethod(), QStateMachinePrivate::unregisterSignalTransition(), QDeclarativeVMEMetaObject::vmeMethod(), QDeclarativeVMEMetaObject::vmeMethodLineNumber(), and QDeclarativeVMEMetaObject::writeVarProperty().
QObject * QMetaObject::newInstance | ( | QGenericArgument | val0 = QGenericArgument(0) , |
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() |
||
) | const |
Constructs a new instance of this class.
You can pass up to ten arguments (val0, val1, val2, val3, val4, val5, val6, val7, val8, and val9) to the constructor. Returns the new object, or 0 if no suitable constructor is available.
Note that only constructors that are declared with the Q_INVOKABLE modifier are made available through the meta-object system.
Definition at line 169 of file qmetaobject.cpp.
|
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 1058 of file qmetaobject.cpp.
Referenced by QAccessibleObjectPrivate::actionList(), QAccessibleWidget::addControllingSignal(), QState::addTransition(), QObject::connect(), QObject::disconnect(), QAxBase::dynamicCallHelper(), QScript::QObjectDelegate::getOwnPropertyDescriptor(), QScript::QObjectDelegate::getOwnPropertySlot(), QMetaObjectBuilder::indexOfConstructor(), QMetaObjectBuilder::indexOfMethod(), indexOfMethodRelative(), QMetaObjectBuilder::indexOfSignal(), QMetaObjectBuilder::indexOfSlot(), QObject::inherits(), QMetaMethod::invoke(), invokeMethod(), MetaObjectGenerator::metaObject(), newInstance(), QDBusMetaObjectGenerator::parseMethods(), QDBusMetaObjectGenerator::parseSignals(), QDBusConnectionPrivate::prepareHook(), QScript::QObjectDelegate::put(), QSignalSpy::QSignalSpy(), QObject::receivers(), QStateMachinePrivate::registerSignalTransition(), QScriptEnginePrivate::scriptConnect(), QScriptEnginePrivate::scriptDisconnect(), QDBusAbstractAdaptor::setAutoRelaySignals(), QDBusPendingCallPrivate::setReplyCallback(), and signalForMember().
|
static |
Normalizes a type.
See QMetaObject::normalizedSignature() for a description on how Qt normalizes.
Example:
Definition at line 1032 of file qmetaobject.cpp.
Referenced by QMetaType::registerType(), QMetaType::registerTypedef(), QMetaMethodBuilder::setReturnType(), QMetaType::type(), and QMetaType::unregisterType().
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 871 of file qmetaobject.cpp.
Referenced by QMetaObjectBuilder::addMetaObject(), MetaObjectGenerator::addSlot(), QDeclarativeWatcher::addWatch(), QDeclarativePropertyCache::append(), QDeclarativeCompiler::buildBinding(), QDeclarativeCompiler::buildGroupedProperty(), QDeclarativeEngineDebugService::buildObjectDump(), QDeclarativeCompiler::buildProperty(), QDeclarativeCompiler::buildPropertyLiteralAssignment(), QDeclarativeCompiler::buildPropertyObjectAssignment(), QDeclarativeCompiler::buildPropertyOnAssignment(), QDeclarativeCompiler::buildValueTypeProperty(), classIDL(), clone(), QDeclarativeCompiler::compileAlias(), QDeclarativeVMEMetaObject::connectAlias(), QDeclarativeProperty::connectNotifySignal(), ShaderEffectItem::connectPropertySignals(), QDeclarativeContext::contextProperty(), QDeclarativePropertyCache::create(), QDeclarativeMetaType::defaultProperty(), QScript::QObjectDelegate::deleteProperty(), QDeclarativeCompiler::doesPropertyExist(), QAxBase::dynamicCallHelper(), QScript::QtPropertyFunction::execute(), QDeclarativeBindingCompilerPrivate::fetch(), QDeclarativeCompiledBindingsPrivate::findproperty(), QAxEventSink::findProperty(), QDeclarativePropertyPrivate::findSignalByName(), generateInterfaceXml(), QDeclarativeCompiler::genPropertyAssignment(), QScript::QObjectDelegate::getOwnPropertyDescriptor(), QScript::QObjectDelegate::getOwnPropertyNames(), QScript::QObjectDelegate::getOwnPropertySlot(), QDeclarativeProperty::hasNotifySignal(), QDeclarativeTypePrivate::init(), QDeclarativeVisualDataModelDataMetaObject::initialValue(), QDeclarativePropertyPrivate::initProperty(), QAxBase::internalProperty(), QAxServerBase::Invoke(), QDeclarativeProperty::isDesignable(), QAxServerBase::isPropertyExposed(), QAxServerBase::Load(), QDeclarativeVMEMetaObject::metaCall(), QDeclarativeProperty::name(), QDeclarativePropertyCache::Data::name(), QAxEventSink::OnChanged(), QDeclarativeBindingCompilerPrivate::parseName(), QDeclarativeValueTypeScriptClass::property(), QDeclarativeProperty::property(), QDeclarativeObjectScriptClass::property(), QObject::property(), QAxBase::propertyBag(), QDeclarativeEngineDebugService::propertyData(), QDeclarativeObjectScriptClass::propertyNames(), QDeclarativeProperty::propertyTypeName(), QScript::QObjectDelegate::put(), qax_generateDocumentation(), qax_noSuchFunction(), qDBusPropertyGet(), QDBusAbstractInterfaceBase::qt_metacall(), QAxBase::qt_metacall(), QDeclarativeValueTypeScriptClass::queryProperty(), readAllProperties(), QDeclarativePropertyPrivate::readValueProperty(), QDeclarativeCompiledBindingsPrivate::run(), QAxServerBase::Save(), QDeclarativePropertyPrivate::saveProperty(), QDeclarativePropertyPrivate::saveValueType(), QStyleSheetStyle::setProperties(), QDeclarativeValueTypeScriptClass::setProperty(), QObject::setProperty(), QAxBase::setPropertyBag(), QDeclarativeQtScriptExpression::updateGuards(), QPropertyAnimationPrivate::updateMetaProperty(), userProperty(), and writeProperty().
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 503 of file qmetaobject.cpp.
Referenced by QMetaObjectBuilder::addMetaObject(), QDeclarativePropertyCache::append(), classIDL(), clone(), generateInterfaceXml(), QScript::QObjectDelegate::getOwnPropertyNames(), QAxServerBase::GetSizeMax(), QDeclarativeTypePrivate::init(), QAxBase::internalProperty(), QAxServerBase::Load(), QDeclarativeVMEMetaObject::metaCall(), QAxBase::propertyBag(), QDeclarativeObjectScriptClass::propertyNames(), qax_generateDocumentation(), qax_noSuchFunction(), qDBusGenerateMetaObjectXml(), QAxBase::qt_metacall(), readAllProperties(), QDeclarativeVMEMetaObject::registerInterceptor(), QAxServerBase::Save(), QDeclarativeData::setBindingBit(), QAxBase::setPropertyBag(), QDeclarativePropertyCache::update(), userProperty(), and QDeclarativeValueTypeFactory::valueType().
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 403 of file qmetaobject.cpp.
Referenced by QDeclarativeFastProperties::accessorIndexForProperty(), QDeclarativeFastProperties::add(), QMetaObjectBuilder::addMetaObject(), QDeclarativePropertyCache::append(), classIDL(), clone(), QDeclarativePropertyCache::create(), QScript::QObjectDelegate::deleteProperty(), QDeclarativeCompiler::genObject(), QScript::QObjectDelegate::getOwnPropertyDescriptor(), QScript::QObjectDelegate::getOwnPropertyNames(), QScript::QObjectDelegate::getOwnPropertySlot(), indexOfProperty(), QDeclarativeTypePrivate::init(), QAxBase::internalProperty(), QMetaProperty::isDesignable(), QMetaProperty::isScriptable(), QMetaProperty::isStored(), QMetaProperty::isUser(), QDeclarativeProxyMetaObject::metaCall(), QDeclarativePropertyPrivate::metaObjectForProperty(), property(), QAxBase::propertyBag(), QMetaProperty::propertyIndex(), QDeclarativeObjectScriptClass::propertyNames(), QScript::QObjectDelegate::put(), qax_noSuchFunction(), QDeclarativeVMEMetaObject::QDeclarativeVMEMetaObject(), QAxBase::qt_metacall(), QMetaProperty::read(), QMetaProperty::reset(), QAxBase::setPropertyBag(), and QMetaProperty::write().
|
static |
Definition at line 406 of file qobject.cpp.
Referenced by QAction::activate(), and QPointer< QAbstractButton >::~QPointer().
int QMetaObject::static_metacall | ( | Call | cl, |
int | idx, | ||
void ** | argv | ||
) | const |
Definition at line 228 of file qmetaobject.cpp.
Referenced by QScript::callQtMethod(), and newInstance().
|
inline |
Returns the meta-object of the superclass, or 0 if there is no such object.
Definition at line 494 of file qobjectdefs.h.
Referenced by QDeclarativeFastProperties::accessorIndexForProperty(), activate(), QDeclarativeFastProperties::add(), QMetaObjectBuilder::addMetaObject(), QDeclarativeCompiler::buildPropertyObjectAssignment(), QDeclarativeCompiler::canCoerce(), QDeclarativePropertyPrivate::canConvert(), classIDL(), QDeclarativeCompiler::compileAlias(), QDeclarativePropertyCache::create(), QDeclarativeEnginePrivate::createCache(), QObject::disconnect(), QObject::dumpObjectInfo(), methodIndexToSignalIndex(), QScriptEnginePrivate::newQObject(), QStyleSheetStyleSelector::nodeNameEquals(), QStyleSheetStyleSelector::nodeNames(), objectInheritsXAndXIsCloserThanY(), QDeclarativeObjectMethodScriptClass::property(), qDBusInterfaceInObject(), qDBusIntrospectObject(), QAccessible::queryAccessibleInterface(), QDeclarativeObjectMethodScriptClass::relatedMethod(), QDBusConnectionPrivate::relaySignal(), QDeclarativeType::superType(), QDeclarativeCompiler::toQmlType(), and QDeclarativePropertyCache::updateRecur().
QString QMetaObject::tr | ( | const char * | s, |
const char * | c | ||
) | const |
Definition at line 320 of file qmetaobject.cpp.
QString QMetaObject::tr | ( | const char * | s, |
const char * | c, | ||
int | n | ||
) | const |
Definition at line 328 of file qmetaobject.cpp.
QString QMetaObject::trUtf8 | ( | const char * | s, |
const char * | c | ||
) | const |
Definition at line 336 of file qmetaobject.cpp.
QString QMetaObject::trUtf8 | ( | const char * | s, |
const char * | c, | ||
int | n | ||
) | const |
Definition at line 344 of file qmetaobject.cpp.
QMetaProperty QMetaObject::userProperty | ( | ) | const |
Returns the property that has the USER
flag set to true.
Definition at line 920 of file qmetaobject.cpp.
Referenced by QDataWidgetMapper::mappedPropertyName(), QStyledItemDelegate::setEditorData(), QItemDelegate::setEditorData(), QStyledItemDelegate::setModelData(), and QItemDelegate::setModelData().
struct { ... } QMetaObject::d |
Referenced by QMetaObjectBuilder::addMetaObject(), QDeclarativeVMEMetaObject::aliasTarget(), buildMetaObject(), cast(), classInfo(), classInfoCount(), classInfoOffset(), QAxBase::clear(), computeOffsets(), QMetaObjectPrivate::connect(), QDeclarativeVMEMetaObject::connectAlias(), constructor(), constructorCount(), QAxBase::control(), QDeclarativeItemPrivate::data_append(), QAxBase::disableClassInfo(), QAxBase::disableEventSink(), QAxBase::disableMetaObject(), enumerator(), enumeratorCount(), enumeratorOffset(), QDeclarativePropertyPrivate::equal(), flush_vme_signal(), QMetaObjectBuilder::fromRelocatableData(), QMetaProperty::hasNotifySignal(), QMetaProperty::hasStdCppSet(), indexOfClassInfo(), indexOfConstructor(), indexOfEnumerator(), indexOfMethodRelative(), indexOfProperty(), QMetaObjectPrivate::indexOfSignalRelative(), QAxBase::indexOfVerb(), QDeclarativeTypePrivate::init(), QAxBase::initialize(), QAxBase::initializeFrom(), QAxBase::initializeRemote(), QAxBase::internalMetaObject(), QAxBase::internalRelease(), QMetaProperty::isDesignable(), QMetaProperty::isEnumType(), QMetaProperty::isReadable(), QMetaProperty::isResettable(), QMetaProperty::isScriptable(), QMetaProperty::isStored(), QMetaProperty::isUser(), QMetaProperty::isWritable(), QMetaObjectPrivate::memberIndexes(), QDeclarativeVMEMetaObject::metaCall(), MetaObjectGenerator::metaObject(), QDeclarativePropertyPrivate::metaObjectForProperty(), method(), methodCount(), methodOffset(), QMetaProperty::name(), normalizedSignature(), QMetaProperty::notifySignalIndex(), QDeclarativeParser::Object::Object(), property(), propertyCount(), propertyOffset(), QAxBase::QAxBase(), QAxMetaObject::QAxMetaObject(), QDeclarativeVMEMetaObject::QDeclarativeVMEMetaObject(), QMetaObject_findMetaObject(), QMetaObject_methods(), QMetaObject_properties(), qNormalizeType(), QAxBase::queryInterface(), QMetaProperty::read(), QMetaProperty::revision(), QAxBase::setControl(), static_metacall(), tr(), trUtf8(), QMetaProperty::type(), QMetaProperty::typeName(), QAxBase::verbs(), QDBusMetaObjectGenerator::write(), QMetaProperty::write(), QAxBase::~QAxBase(), and QAxMetaObject::~QAxMetaObject().
const uint* QMetaObject::data |
Definition at line 471 of file qobjectdefs.h.
Referenced by QMetaObjectBuilder::addMetaObject(), buildMetaObject(), classInfoCount(), classInfoOffset(), enumeratorCount(), enumeratorOffset(), QMetaObjectBuilder::fromRelocatableData(), QMetaProperty::hasNotifySignal(), QMetaProperty::hasStdCppSet(), indexOfClassInfo(), indexOfConstructor(), indexOfEnumerator(), indexOfProperty(), QMetaProperty::isDesignable(), QMetaProperty::isEnumType(), QMetaProperty::isReadable(), QMetaProperty::isResettable(), QMetaProperty::isScriptable(), QMetaProperty::isStored(), QMetaProperty::isUser(), QMetaProperty::isWritable(), QMetaEnum::key(), QMetaEnum::keysToValue(), QMetaEnum::keyToValue(), QDeclarativeProxyMetaObject::metaCall(), QDeclarativeOpenMetaObject::metaCall(), MetaObjectGenerator::metaObject(), methodCount(), methodOffset(), QMetaProperty::name(), QMetaProperty::notifySignalIndex(), QDeclarativeParser::Object::Object(), propertyCount(), propertyOffset(), QMetaObject_methods(), QMetaObject_properties(), QMetaProperty::read(), QMetaProperty::revision(), QMetaProperty::type(), QMetaProperty::typeName(), QMetaEnum::value(), QMetaEnum::valueToKey(), QMetaEnum::valueToKeys(), QDBusMetaObjectGenerator::write(), and QMetaProperty::write().
const void* QMetaObject::extradata |
Definition at line 472 of file qobjectdefs.h.
Referenced by QMetaObjectBuilder::addMetaObject(), buildMetaObject(), QMetaObjectPrivate::connect(), MetaObjectGenerator::metaObject(), QDeclarativeParser::Object::Object(), and QDBusMetaObjectGenerator::write().
const char* QMetaObject::stringdata |
Definition at line 470 of file qobjectdefs.h.
Referenced by buildMetaObject(), QDeclarativePropertyPrivate::equal(), QMetaObjectBuilder::fromRelocatableData(), indexOfClassInfo(), indexOfEnumerator(), indexOfMethodRelative(), indexOfProperty(), MetaObjectGenerator::metaObject(), QMetaProperty::name(), QDeclarativeParser::Object::Object(), QMetaProperty::read(), QMetaProperty::typeName(), QDBusMetaObjectGenerator::write(), and QMetaProperty::write().
const QMetaObject* QMetaObject::superdata |
Definition at line 469 of file qobjectdefs.h.
Referenced by buildMetaObject(), cast(), classInfoCount(), classInfoOffset(), computeOffsets(), QDeclarativeItemPrivate::data_append(), enumeratorCount(), enumeratorOffset(), flush_vme_signal(), QMetaObjectBuilder::fromRelocatableData(), indexOfClassInfo(), indexOfEnumerator(), indexOfMethodRelative(), indexOfProperty(), QMetaObjectPrivate::indexOfSignalRelative(), QDeclarativeTypePrivate::init(), QMetaObjectPrivate::memberIndexes(), MetaObjectGenerator::metaObject(), QDeclarativePropertyPrivate::metaObjectForProperty(), methodCount(), methodOffset(), QDeclarativeParser::Object::Object(), propertyCount(), propertyOffset(), QMetaObject_findMetaObject(), and QDBusMetaObjectGenerator::write().