I am looking for the easiest way to convert a c++ standard string to a QString?
I can only think of appending them (char ) one by one into QString but there must be an easy way ....
baray98
I am looking for the easiest way to convert a c++ standard string to a QString?
I can only think of appending them (char ) one by one into QString but there must be an easy way ....
baray98
QString qstring(stdstring.c_str());
or
QString::fromStdString(stdstring);
are easy.
Last edited by JimDaniel; 19th July 2008 at 04:01.
baray98 (19th July 2008)
Bookmarks