qstring 转string
时间: 2023-09-02 08:11:25 浏览: 103
QT常用控件编程.pdf
要将QString转换为std::string,可以使用QString的toStdString()方法。这个方法会返回一个std::string类型的字符串,表示与原始QString相对应的内容。引用<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [C++ Qt QString转string乱码的处理方法](https://blog.csdn.net/yao_hou/article/details/121984617)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Qt中QString转string中文乱码问题](https://blog.csdn.net/weixin_45824067/article/details/130858352)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文