Last active
January 6, 2017 07:43
-
-
Save MareArts/b917772ac586153ec97784816cf9eeb7 to your computer and use it in GitHub Desktop.
QString vs string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
http://study.marearts.com/2017/01/qstring-to-string-string-to-qstring.html