반응형 qt qstring1 C++ QString -> std::string(CString) 변환 예제 소스 C++, QString -> std::string 변환 예제 소스 UTF-8 형식에서 작업할 때와 윈도우 환경에서 작업할 때 구현 소스가 조금 다릅니다. 1234567QString qs; // Either this if you use UTF-8 anywherestd::string utf8_text = qs.toUtf8().constData(); // or this if you're on Windows :-)std::string current_locale_text = qs.toLocal8Bit().constData();cs 출처는 스택 오버 플로우 출처 : How to convert QString to std::string? [링크] C++ QString -> std::string(CString) 변환 예.. 2018. 10. 5. 이전 1 다음 반응형