当前位置:网站首页>Handling method of qstring containing "\u0000" in QT
Handling method of qstring containing "\u0000" in QT
2022-06-25 18:07:00 【weixin_ one hundred and one】
QT in QString contain “\u0000“ Treatment mode
QT in QString contain “\u0000“ Treatment mode
Actually "\u0000" It is equivalent to 0x00, So you can replace it directly. The usage is as follows :( This may be caused by a null character complementing the number of digits when receiving data )
QChar rep_str = 0x00;
if (output.contains(rep_str))
{
output.replace(rep_str, "");
}
return output;
Original blog post :https://blog.csdn.net/Littlehero_121/article/details/122668046
边栏推荐
- SDN system method | 10 The future of SDN
- Introduction to the container of() function
- 近来开发的一款简单易用的图可视化工具
- What is an operator?
- Article 6:clion:toolchains are not configured configure disable profile
- 智能对话01-redis的安装
- Find the longest substring length satisfying the condition
- The icon is missing. What does the URL come from with the jesssionid?
- 158_模型_Power BI 使用 DAX + SVG 打通制作商业图表几乎所有可能
- mysql mysql-8.0.19-winx64 安装与navicat连接
猜你喜欢

篇5:VS2017搭建QT5.9.9开发环境

使用DiskGenius拓展系統盤C盤的容量

Introduction to microservices

什么是算子?

The Stackies 2022:32个营销技术栈入选

Three traversal methods of binary tree (recursive + non recursive) complete code

Matlab中图形对象属性gca使用

Utilisation de diskgenius pour augmenter la capacité du disque système C

什么是算子?

喜报|海泰方圆通过CMMI-3资质认证,研发能力获国际认可
随机推荐
[daily record] - bug encountered during BigDecimal Division
Unity technical manual - lifecycle rotation rotationoverlifetime speed rotation rotationbyspeed external forces
深入理解ELF文件
微信小程序报错:request:fail url not in domain list
Getting started with kotlin (20) several common dialog boxes
股票开户找人办比较方便么?在线开户安全么?
QT中QString包含“\u0000“的处理方式
Which is better and safer, GF easy gold rush or compass
Huawei cloud gaussdb (for redis) unveiling issue 19: gaussdb (for redis) comprehensive comparison with CODIS
new TypeReference用法 fastjson[通俗易懂]
观察者模式之通用消息发布与订阅
Qinheng ch583 USB custom hid debugging record
Accumulation of some common knowledge points
SDN system method | 9 Access network
Bert's summary of me
HMS core machine learning service realizes simultaneous interpretation, supports Chinese-English translation and multiple voice broadcast
HMS Core机器学习服务实现同声传译,支持中英文互译和多种音色语音播报
The icon is missing. What does the URL come from with the jesssionid?
Introduction to microservices
Redis趋势—NVM内存