c++ – Issue while trying to onnect a horizontal slider to a LCD number and a progress bar in Qt

I want to move the slider bar and the changing value to be displayed in the LCD number and a progress bar in Qt.
I use the connect function int the mainWindow constructor as follows

connect(ui->horizontalSlider, &QSlider::valueChanged, ui->progressBar,&QProgressBar::setValue);
connect(ui->horizontalSlider, &QSlider::valueChanged, ui->lcdNumber, &QLCDNumber::display);

but the second function returns

error: no matching function for call to 'MainWindow::connect(QSlider*&, void (QAbstractSlider::*)(int), QLCDNumber*&, <unresolved overloaded function type>)'

Why this happens ?

Thanks