chickadee » qt » qt:connect

qt:connect SOURCE SIGNAL DESTINATION #!optional SLOTprocedure

Connects the signal SIGNAL from the <qt-object> SOURCE to the slot SLOT from DESTINATION. If no slot is given then slot will have the same signature and name as the SIGNAL. Signals and slots should be strings and follow the normal syntax used by Qt. DESTINATION can be a <qt-object> or a scheme function. SLOT can have any number of arguments as long as they can be marshalled back to scheme, the types currently are: int, string, bool, uint and double. Dispatch is handled entirely by Qt using a fake object per call to qt:connect meaning that all of the rules for matching types and numbers of arguments still apply. Returns a procedure that disconnects and frees the memory used by this connection.