qt5-循环遍历语句foreach

 

   QStringList listTemp;
   listTemp.append("aaa");
   listTemp.append("bbb");
   listTemp.append("ccc");

   QString strTemp1;
   foreach(strTemp1,listTemp)
   {
   qDebug()<<strTemp1;
   }
   //以上代码中,listTemp会把自己的每个项,依次赋值给strTemp1

 

 

 

 

qt5-循环遍历语句foreach

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2021-11-10
  • 2021-07-29
  • 2022-01-18
猜你喜欢
  • 2021-08-26
  • 2022-12-23
  • 2021-10-20
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
相关资源
相似解决方案