simple connection of widgets to main qt widget