What is the most basic way to do it?
If compiled with STL compatibility, QString has a static method to convert a std::string to a QString:
QString
std::string
std::string str = "abc"; QString qstr = QString::fromStdString(str);
1.4m articles
1.4m replys
5 comments
56.9k users