I\'m using Qt/C++ on a Linux system. I need to convert a QLineEdit\'s text to std::wstring and write it into a std::wofstream. It work
QLineEdit
std::wstring
std::wofstream
Add
#include <locale>
and at the start of main,
std::locale::global(std::locale(""));