How to convert QString to std::string?
2012-06-07 17:48
239 查看
[code]QString qs; // do things std::cout << qs.toStdString() << std::endl;
Here's reference documentation for
QString.
http://stackoverflow.com/questions/4214369/how-to-convert-qstring-to-stdstring
相关文章推荐
- C++ String: How to convert between 'CString' and 'std::string'?
- How to convert std::string to LPCWSTR in C++ (Unicode)
- how convert large HEX string to binary array ?
- How to convert enum to string with boost library
- How to convert InputStream to String/convert char[] to String
- How to convert a byte to its binary string representation
- 如何将String类型的数组转换成ArrayList(How to convert a string array to arraylist)(转)
- cannot convert parameter 1 from 'std::string' to 'const char *'
- Convert std::string to const char* or char*
- How to convert from int to string in objective c
- How to convert int to string with C++ - forest的日志 - 网易博客
- How to properly convert SecureString to String
- 如何将String类型的数组转换成ArrayList(How to convert a string array to arraylist)
- How Do I Convert an Integer to a String in Excel VBA
- How can I convert String to Int in C#?
- how to convert wstring to string
- 【Z一贴】C++ String: How to convert a string into a numeric type?
- 关于Qt内嵌CEF使用QString::toStdString();函数导致的一些坑
- how to convert wstring to string
- How to convert string to Guid type.