Skip to content

Instantly share code, notes, and snippets.

@MareArts
Last active January 6, 2017 07:43
Show Gist options
  • Save MareArts/b917772ac586153ec97784816cf9eeb7 to your computer and use it in GitHub Desktop.
Save MareArts/b917772ac586153ec97784816cf9eeb7 to your computer and use it in GitHub Desktop.
QString vs string
http://study.marearts.com/2017/01/qstring-to-string-string-to-qstring.html
//string to QString
QString str = QString::fromUtf8(content.c_str());
//Qstring to string
string str = QString.toUtf8().constData();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment