Skip to content

Instantly share code, notes, and snippets.

@Alir3z4
Created January 29, 2012 18:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Alir3z4/1700075 to your computer and use it in GitHub Desktop.
Save Alir3z4/1700075 to your computer and use it in GitHub Desktop.
const std::vector<std::string> toStdVector(const QVector<QString> &q_vect)
{
std::vector<string> std_vect;
for (int i = 0; i < q_vect.size(); ++i) {
std_vect.push_back(q_vect[i].toStdString());
}
return std_vect;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment