QString pattern = "\\bchar\\b";                  \\要匹配的字符
QRegExp expression(pattern);                     \\ 创建正则表达式
int index = text.indexOf(expression);            \\ indexOf()字符串匹配

相关文章:

  • 2022-01-09
  • 2022-12-23
  • 2021-12-10
  • 2021-12-01
  • 2021-11-23
  • 2021-12-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2021-12-22
相关资源
相似解决方案