Given the following two:
connect(ui->comboBox, SIGNAL(activated(QString)), ps, SLOT(requestPlotsAvailable(QString))); connect(ui->comboBox, &QComboBox::activated, ps, &PlotSystem::requestPlotsAvailable);
The first uses the old notation, which works. The second uses a new notation and gives an error
error: no matching function for call to 'PlotSystemGui::connect(QComboBox*&, <unresolved overloaded function type>)'
How to avoid errors using the new notation?
source share