When connecting the signal slot, an error is reported error: no matching member function for call to 'connect'
.
connect(comboBox_com, &QComboBox::highlighted, this, &testOptionUSBRemote::refreshComList);
The reason is that the signal has been overloaded and has the same name, but the parameters are different, and this error will be reported.
Q_SIGNALS:
void highlighted(int index);
void highlighted(const QString &);
In this case, the legacy syntax needs to be used.
connect(comboBox_com, SIGNAL(highlighted(int)), this, SLOT(refreshComList(int)));