Conversion of std::wstring to QString throws linker error

前端 未结 7 2010
一生所求
一生所求 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:07

    I was seeing a similar problem but none of these solutions worked. I eventually realised I was compiling with Visual Studio 2017 but linking to Qt compiled with Visual Studio 2013. Once I selected the right version it worked fine.

提交回复
热议问题