Conversion of std::wstring to QString throws linker error

前端 未结 7 2020
一生所求
一生所求 2020-12-17 15:25

Hi I need to convert a std::wstring to QString and I tried the most obvious way of

std::wstring wideString;
QString qtString = QStri         


        
7条回答
  •  鱼传尺愫
    2020-12-17 16:06

    Add

    QT += core
    

    to you .pro file. This results in what the other answer tell you to do. (be sure to rerun qmake)

提交回复
热议问题