QString strCh("C:\Users\Desktop\新建文件夹");
if ( strCh.contains(QRegExp("[\\x4e00-\\x9fa5]+")) )
{qdebug() << "不可使用中文路径!";
}
Qt判断中文路径
最新推荐文章于 2024-08-02 12:23:08 发布
QString strCh("C:\Users\Desktop\新建文件夹");
if ( strCh.contains(QRegExp("[\\x4e00-\\x9fa5]+")) )
{qdebug() << "不可使用中文路径!";
}