当前位置:网站首页>How to wrap qstring strings
How to wrap qstring strings
2022-07-02 08:00:00 【Licht powder】
problem : There is such a long section of characters , Want to wrap

Solution 1 : With the help of append
QString str = "\n";
QString sXml = "<message>";
sXml.append(str);
sXml = sXml + "<head packtype=\"21\" sessionid=\"31\" fromip=\"192.168.84.244\" toip=\"\"> ";
sXml.append(str);
sXml = sXml + "</head>";
sXml.append(str);
sXml = sXml + "<body cmdid=\"B000\" stbip=\"192.168.84.244\"></body>";
sXml.append(str);
sXml = sXml + "</message>";Effect display :

Solution 2 : emmm Directly after the string to be converted \n It's OK, too :
QString sXml = "<message> \n <head packtype=\"21\" sessionid=\"31\" \n fromip=\"192.168.84.244\" toip=\"\"></head>\n <body cmdid=\"B000\" stbip=\"192.168.84.244\"></body> \n</message>";
The effect is as follows :

I have a question:
Written by a blogger , I used to remember that it was impossible .
![]()
however ! however ! I tried two possibilities of this statement today , Can achieve the effect of line feed , It's ridiculous !!!
The first one is :
QString sXml = "message" ;
sXml = sXml + "\nhead";effect :

The second kind :
QString sXml = "message" ;
sXml = sXml + "\n" + "head";effect :
![]()
So does my blog record a record ???????
alas !!!!!!!
边栏推荐
- Latex formula normal and italic
- Thesis writing tip2
- w10升级至W11系统,黑屏但鼠标与桌面快捷方式能用,如何解决
- Programmers can only be 35? The 74 year old programmer in the United States has been programming for 57 years and has not retired
- 【TCDCN】《Facial landmark detection by deep multi-task learning》
- Comparison of chat Chinese corpus (attach links to various resources)
- 浅谈深度学习中的对抗样本及其生成方法
- Memory model of program
- C # connect to MySQL database
- 【Batch】learning notes
猜你喜欢

Remplacer l'auto - attention par MLP

静态库和动态库

jetson nano安装tensorflow踩坑记录(scipy1.4.1)

The internal network of the server can be accessed, but the external network cannot be accessed

【MagNet】《Progressive Semantic Segmentation》

【Hide-and-Seek】《Hide-and-Seek: A Data Augmentation Technique for Weakly-Supervised Localization xxx》

Specification for package drawing

【TCDCN】《Facial landmark detection by deep multi-task learning》

Target detection for long tail distribution -- balanced group softmax

On the confrontation samples and their generation methods in deep learning
随机推荐
I'll show you why you don't need to log in every time you use Taobao, jd.com, etc?
EKLAVYA -- 利用神经网络推断二进制文件中函数的参数
【Mixed Pooling】《Mixed Pooling for Convolutional Neural Networks》
A brief analysis of graph pooling
Summary of solving the Jetson nano installation onnx error (error: failed building wheel for onnx)
针对tqdm和print的顺序问题
jetson nano安装tensorflow踩坑记录(scipy1.4.1)
Command line is too long
【Mixup】《Mixup:Beyond Empirical Risk Minimization》
Ppt skills
Sequence problem for tqdm and print
浅谈深度学习中的对抗样本及其生成方法
【MnasNet】《MnasNet:Platform-Aware Neural Architecture Search for Mobile》
Income in the first month of naked resignation
【Sparse-to-Dense】《Sparse-to-Dense:Depth Prediction from Sparse Depth Samples and a Single Image》
CONDA common commands
【学习笔记】Matlab自编图像卷积函数
Replace self attention with MLP
Timeout docking video generation
【双目视觉】双目矫正