Qt比较字符串Qstring是否相等



QString str = "相等";
if(str ==QString::fromLocal8Bit("球形"))
{
qDebug()<<"相等";
}