如,QString name("王五超"); 如何将name转化为“王*超”,姓名中间增加*号显示。
收起
QString newName = name.replace(QRegExp("五"),"*");
报告相同问题?