当前位置:网站首页>Qstring to const char*
Qstring to const char*
2022-06-30 07:00:00 【HL_ Aeolus】
QString str(“hello world!”);
Turn into const char *
- const char * arr = str.toStdString.c_str();
- const char * arr = str.toLatin1().constData(); //toUtf8()
Turn into char *
3. char * arr = str.toStdString.data();
4. char * arr = str.toLatin1().data(); //toUtf8()
…
Specially ,char * turn QString It's simpler
- QLatinlString(const char *) -> QString(QLatinlString str)
- QString(const char *)
- QString QString::fromStdString(const std::string &str)
边栏推荐
- Cluster distributed
- leetcode:98. Validate binary search tree
- File transfer protocol, FTP file sharing server
- Steps for formulating class or file templates in idea
- Definition and use of ROS topic messages
- ETL为什么经常变成ELT甚至LET?
- Egret P2 physical engine (1) small ball falling demo
- 第一行代码(第三版)学习笔记
- [Hot100]10. Regular Expression Matching
- SOC_ AHB_ SD_ IF
猜你喜欢
Fastapi learning Day1
Why does ETL often become ELT or even let?
0基础转行软件测试,如何实现月薪9.5k+
Win10踩坑-开机0xc0000225
Connection Flood攻击原理
Performance comparison of random network, scale-free network, small world network and NS small world matlab simulation
MySQL优化:从十几秒优化到三百毫秒
经纬恒润再次荣获PACCAR集团 10PPM 质量奖
RT thread Kernel Implementation (II): critical area, object container
How to set the hot deployment of idea web project
随机推荐
Records of problems solved (continuously updated)
1.2 (supplementary)
Problems and solutions of creating topic messages in ROS
Is Huatai stock trading safe? I want to open an account online.
RT thread Kernel Implementation (III): implementation of idle threads and blocking delay
【申博攻略】五.专家推荐信模板
NFS mount
RT thread application
[transfer] analysis of memory structure, cache and DMA architecture
【转】存储器结构、cache、DMA架构分析
Go项目目录结构介绍
第一行代码(第三版)学习笔记
Finished product upgrade procedure
sscanf 函数的使用
C # - C # process and convert pixeldata of CT images with fo DICOM
Unity中实现溶解(Dissolve)特效及其原理解析
1.5 - logical operation
Assembly language learning I (with stack co process, 32-bit registers and related instructions, to be continued 06/29)
It turns out that you are such an array. You have finally learned
六,购物⻋与订单