Connecting plugs and slots in a GUI

@jhodapp Please see this topic for more background.