C++string转QT的QString

 std::string s1 = "这是中文";
 QString s2 = QString::fromLocal8Bit(s1.data());

 

posted @ 2025-11-18 08:46  家煜宝宝  阅读(0)  评论(0)    收藏  举报