```
for(i=0; i<height; i++)
{
    for(j=0; j<width; j++)
    {
        button[i][j] = new QPushButton("Empty", this);
        button[i][j]->resize(40, 40);
        button[i][j]->move(40*j, 40*i);
        connect(button[i][j], SIGNAL(clicked()), this, SLOT(changeText(button[i][j])));
    }
}

```

If i changed function changeText with function (fullScreen for example) it works 
but when i use a slot defined by me (changeText) this Error Appears and i don't know how to solve it

```
QObject::connect: No such slot buttons::changeText(&button[i][j])

```

and this is the function changeText:

```
void buttons::changeText(QPushButton* button)
{
    button->setText("Fish");
}

```

NOTE: in the header file i defined the slot like this :

class buttons : public QWidget

```
    Q_OBJECT
public slots:
    void changeText(QPushButton* button);

```