Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void QObject::connectNotify ( const char *  signal  )  [protected, virtual, inherited]

This virtual function is called when something has been connected to signal in this object.

If you want to compare signal with a specific signal, use QLatin1String and the SIGNAL() macro as follows:

doc/src/snippets/code/src_corelib_kernel_qobject.cpp 32

If the signal contains multiple parameters or parameters that contain spaces, call QMetaObject::normalizedSignature() on the result of the SIGNAL() macro.

Warning:
This function violates the object-oriented principle of modularity. However, it might be useful when you need to perform expensive initialization only if something is connected to a signal.
See also:
connect(), disconnectNotify()

Reimplemented in QBuffer, QDBusAbstractInterface, QDBusConnectionInterface, QClipboard, and Q3Process.

Definition at line 2707 of file qobject.cpp.

Referenced by QObject::connect().

{
}


Generated by  Doxygen 1.6.0   Back to index