如题。错误出现在下面的槽函数的str=ui->comboBox_2->currentText();这一行中,错误是:
passing 'const QString' as 'this' argument of 'QString& QString::operator=(const QString&)' discards qualifiers
voidProInfo::StyleAdd(constQString&str)
{
str=ui->comboBox_2->currentText();
if(str=="abc")
dlg->show();
}
谢谢!