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

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:

        if (QLatin1String(signal) == SIGNAL(valueChanged(int))) {
            // signal is valueChanged(int)
        }

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 QClipboard, Q3Process, QDBusAbstractInterface, and QDBusConnectionInterface.

Definition at line 2819 of file qobject.cpp.

Referenced by QObject::connect().

{
}


Generated by  Doxygen 1.6.0   Back to index