View Single Post
Posts: 341 | Thanked: 57 times | Joined on Nov 2009
#1
Hey everyone ... I'm new to Qt, and am just getting used to the idea of what Signals and Slots are ... As far as I can tell, 'Signal' are events triggered by the system or user, and they are 'connected' to slots using the connect command. Slots are functions which 'do' something when their corresponding Signal is triggered ... This much I understand .. The thing I dont understand is that after looking through some Qt documentation examples and tutorials, it seems that 'events' are also used .. like MouseEvents, and KeyPressEvent, etc .... The thing which is confusing me is, why are we using to different implementations to handle system/user triggers ? Why not just use one of these two method/terminologies/implementations to handle of kinds of triggers/events ?

I mean for some triggers, the 'Events' methodology is being used, while for other kinds of triggers, 'Signals and Slots' methodology is being used ... Isn't this confusing ?