SIGNAL
and SLOT
macros will convert their argument to a string. Then QObject::connect()
will compare those strings with the introspection data collected by the moc tool. typedef
or namespacestypedef
or namespaces properly, but you can also connect signalsto slots that take arguments of different types if an implicit conversion is possibleQString
as a parameter to a slot that takes a QVariant
. It works because QVariant
has an implicit constructor that takes a QString
public
and not as slot
. Qt will indeed call directly the function pointer of the slot, andwill not need moc
introspection anymore. (It still needs it for the signal)tr1::bind
.