c++11 range-loop might detach Qt container (QStringList)避免方法
字面描述是循环会分离此列表。避免出现此警告用如下方法;1、定义新变量:123constQStringList&list=oldList;for(auto&str:list){}2、使用qt的宏:123456for(auto&str:qAsConst(list)){}//c++11版本如下编译不通过,const一定要为变量值for(auto&str:qAsConst(getList())){}3、c