当前位置:网站首页>Differences between two ways of QT creating folders
Differences between two ways of QT creating folders
2022-07-28 15:32:00 【Flying_】
QDir There are two ways to create folders :
mkdir() If there are subfolders in the folder to be created , Then this kind of creation is unsuccessful , Unless the parent folder of the subfolder already exists !
mkpath() If there are subfolders in the created folder , No matter what, it will be created from the parent folder to the bottom subfolder , All will succeed !
123/456
If 123 Already exist , Then both will succeed
If 123 non-existent , So use mkdir Failure
QFileInfo in absolutefilepath() and absolutepath() What's the difference? ?
absolutefilepath() Include the name of the current file
and absolutepath() Is the path where the current file is located , That is, the current path name is not included , Just to the upper floor
qdir Medium entryinfolist() How to filter functions . and .. file
dir. entryinfolist(QDir::Dirs|QDir::NoDotAndDotDot) In this way, these two files can be filtered out
How to transfer the read file into a string ?
QTextStream stream(&file);
QString str=stream. readall();
边栏推荐
- Shellcode writing (unfinished)
- Jy-7ga/1 voltage relay
- 腾讯面试之--请你设计一个实现线程池顺序执行
- Back compilation failed
- Multi merchant mall system with relatively clean code
- I heard that many merchants of crmeb have added the function of planting grass?
- 有奖活动分享:使用WordPress搭建一个专属自己的博客后最高可领取iPhone13
- 解决pycharm使用powershell出错问题
- Configure CX Oracle solution (cx_oracle.databaseerror) dpi-1047: cannot locate a 64 bit Oracle client library: "th
- Encapsulate the unified return object messageresult
猜你喜欢

I heard that many merchants of crmeb have added the function of planting grass?

Understanding of entropy and cross entropy loss function

2022年全球程序员平均薪资发布,中国排名很意外

No files or folders found to process

如何获取及嵌入Go二进制执行包信息

程序员的自我修养

SRTT-110VDC-4H-C时间继电器

About the reptile thing
软件测试的流程规范有哪些?具体要怎么做?

What are the functions to be added in crmeb pro2.2?
随机推荐
Celery related
20、通道分配任务实现
4.8 HD-GR GNSS导航软件源码
3、基本常数和宏定义
Pytorch - autograd automatic differentiation
PMP【敏捷教材+全真模拟题】,续6月25日考试之后,敏捷就成为了重中
听说crmeb多商户增加了种草功能?
How to write a JMeter script common to the test team
Dj-131/60c voltage relay
Crmeb v4.3 deployment process
电压继电器DY-28C
What functions will be added to crmeb Standard Version 4.4
程序员的自我修养
JWY-32B电压继电器
字符数组和字符串的区别
提速1200倍!MIT开发新一代药物研发AI,吊打老模型
机器学习的3大“疑难杂症”,因果学习是突破口 | 重庆大学刘礼
Table lock query and unlocking in SQL development part 1
[MP error] MP: 'getbasemappe serviceimpl' claims
1、开源GPS项目HD-GR GNSS的著作者