|
void | discoverObject (QObject *object) override |
|
bool | filterObject (QObject *obj) const override |
|
void | installGlobalEventFilter (QObject *filter) override |
|
bool | isValidObject (QObject *obj) const |
|
bool | needsObjectDiscovery () const override |
|
QAbstractItemModel * | objectListModel () const override |
|
QAbstractItemModel * | objectTreeModel () const override |
|
QObject * | probe () const override |
|
void | registerModel (const QString &objectName, QAbstractItemModel *model) override |
|
void | registerSignalSpyCallbackSet (const SignalSpyCallbackSet &callbacks) override |
|
void | selectObject (QObject *object, const QPoint &pos=QPoint()) override |
|
void | selectObject (QObject *object, const QString &toolId, const QPoint &pos=QPoint()) override |
|
void | selectObject (void *object, const QString &typeName) override |
|
void | setWindow (QObject *window) |
|
QObject * | window () const |
|
| QObject (QObject *parent) |
|
bool | blockSignals (bool block) |
|
const QObjectList & | children () const |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
|
void | deleteLater () |
|
void | destroyed (QObject *obj) |
|
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const |
|
bool | disconnect (const QObject *receiver, const char *method) const |
|
void | dumpObjectInfo () |
|
void | dumpObjectTree () |
|
QList< QByteArray > | dynamicPropertyNames () const |
|
virtual bool | event (QEvent *e) |
|
T | findChild (const QString &name, Qt::FindChildOptions options) const |
|
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const |
|
QList< T > | findChildren (const QRegExp ®Exp, Qt::FindChildOptions options) const |
|
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const |
|
bool | inherits (const char *className) const |
|
void | installEventFilter (QObject *filterObj) |
|
bool | isWidgetType () const |
|
bool | isWindowType () const |
|
void | killTimer (int id) |
|
virtual const QMetaObject * | metaObject () const |
|
void | moveToThread (QThread *targetThread) |
|
QString | objectName () const |
|
void | objectNameChanged (const QString &objectName) |
|
QObject * | parent () const |
|
QVariant | property (const char *name) const |
|
void | removeEventFilter (QObject *obj) |
|
void | setObjectName (const QString &name) |
|
void | setParent (QObject *parent) |
|
bool | setProperty (const char *name, const QVariant &value) |
|
bool | signalsBlocked () const |
|
int | startTimer (int interval, Qt::TimerType timerType) |
|
QThread * | thread () const |
|
|
template<typename Func > |
static void | executeSignalCallback (const Func &func) |
|
static Probe * | instance () |
|
static bool | isInitialized () |
|
static void | objectAdded (QObject *obj, bool fromCtor=false) |
|
static QMutex * | objectLock () |
|
static void | objectRemoved (QObject *obj) |
|
static void | startupHookReceived () |
| internal
|
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
|
bool | disconnect (const QMetaObject::Connection &connection) |
|
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
|
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
|
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
|
QString | tr (const char *sourceText, const char *disambiguation, int n) |
|
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
|
bool GammaRay::Probe::needsObjectDiscovery |
( |
| ) |
const |
|
overridevirtual |
Returns true
if we haven't been able to track all objects from startup, ie. usually when attaching at runtime. If this is the case, we try to discover QObjects by walking the hierarchy, starting from known singletons, and by watching out for unknown receivers of events. This is far from complete obviously, and plug-ins can help finding more objects, using specific knowledge about the types they are responsible for.
Connect to the objectAdded(QObject*) signal on probe(), and call discoverObject(QObject*) for "your" objects.
- Since
- 2.5
Implements GammaRay::ProbeInterface.