there is also a shortcut addAction overload which takes the slot to be connected as the parameter.