#include<QString> QString str="iloveyou"; str.contains("you",Qt::CaseSensitive);//成功返回true 第二个参数表示是否大小写敏感