Ok, it works. Thank you for your answer and the explanation.

Is it common, that in such a case the connect-statement appears directly
after the creation of the object? E.g.

Qt Code:
  1. AddressBook *customerlist = new AddressBook();
  2. connect(customerlist->addCustomerButton ,SIGNAL(clicked()), this, SLOT(newcustomer()));
To copy to clipboard, switch view to plain text mode 

I tried to connect the button in the constructor of MainWindow together with all the
filemenu-toolbar-action-stuff, but the QDialog "AddressBook* newcustomer" is not present at that time,
because it is opened by the user later. So I guess it its not possible to connect it before, in
case if there will be an exiting object, or am I wrong?