How do I have to define the slot to lend him any class?

How do I have to define the method, in order to lend him a class ?

connect(addCustomerButton, SIGNAL(clicked()), this, SLOT(addNewCustomer(customer)));

this is how it is defined

private slots:

void addNewCustomer(Custoemr& customer);

and the method itself:

void addNewCustomer(Customer& customer) {
   / some code here.

The compiler is saying that there is no such slot..
Topic archived. No new replies allowed.