qt 字符串转换成长整形
时间: 2023-10-22 16:28:10 浏览: 138
QGBK.zip_QT转换字符串源码
在Qt中,可以使用toLongLong()函数将字符串转换为长整型。例如,如果有一个字符串变量str,你可以使用str.toLongLong()来将其转换为长整型。这个函数将返回一个长整型的值,如果转换失败,将返回0。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [qt字符串和数字转换](https://blog.csdn.net/qq_43268225/article/details/128756469)[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_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [Qt QString转整型](https://blog.csdn.net/qq_43509546/article/details/109534077)[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_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [毕设项目:基于CTP和Qt的可视化期货监控系统.zip](https://download.csdn.net/download/qq_35831906/88258944)[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_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文