Hi guys,

Given two CSV strings (ptag and pdata)...
Want to join them in a single QStringList...

Can the following code block be optimized?

Qt Code:
  1. QString ptag = query.value(0).toString();
  2. QString pdata = query.value(1).toString();
  3.  
  4. QStringList tag = ptag.split(",");
  5. QStringList data = pdata.split(",");
  6.  
  7. for (int n=0; n < tag.size(); n++)
  8. this->protocols << tag.at(n) + data.at(n);
To copy to clipboard, switch view to plain text mode 

Thx in advance!