Signal-Slot Event System
Here we have three different objects, each one of them capable of emitting and responding to signals.
A command line is provided below so that you can connect signals and slots the same way as you would do when you're writing a web application with WT Toolkit. Connecting objectA to objectB makes objectB respond to a certain event emitted by objectA. To connect a signal in objectA to a slot in objectB, use the following command:
<objectA>.connect(<Connection ID>, <Signal Name>, <objectB>, <Slot Name>);
Where "Connection ID" is any string of your choice for identifying a signal-slot connection. The objects, signal names and slot names you can use are given below. An example command is also provided, which after being executed, will make the rectangle "jump" to random positions with a mouse click on the circle. Also note that using the same connection ID for the same signal and signal emitter will override the old connection.