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
Printable View
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.