当前位置:网站首页>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();
边栏推荐
- 3540. Binary search tree
- Encapsulate the unified return object messageresult
- SRTT-110VDC-4H-C时间继电器
- Have you ever used the single merchant mall, which is smooth enough to make people feel numb?
- How to set some app application icons on the iPhone Apple phone that you don't want others to see? How to hide the app application settings on the mobile desktop so that they can be used normally afte
- Problems encountered by pyppeter
- Crmeb Standard Version window+phpstudy8 installation tutorial (I)
- 手把手带你编写一个规范的字符设备驱动
- 新版数据同步问题
- JY-7GA/1电压继电器
猜你喜欢

About the reptile thing

Opencv - closely combine multiple irregular small graphs into large graphs

7/13 (pond sampling)

Crmeb Standard Edition window+phpstudy8 installation tutorial (II)

DJ-131/60C电压继电器

Introduction to grpc

2022年全球程序员平均薪资发布,中国排名很意外
![PMP [agile textbook + full truth simulation question]. After the exam on June 25, agile has become the top priority](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
PMP [agile textbook + full truth simulation question]. After the exam on June 25, agile has become the top priority

Have you ever used the single merchant mall, which is smooth enough to make people feel numb?

代码比较干净的多商户商城系统
随机推荐
Leetcode - sliding window extremum, search tree postorder traversal, statistical difference pairs, dividing equal subsets
Crmeb Standard Edition window+phpstudy8 installation tutorial (III)
19、通道分配任务定义
RY-D1/1电压继电器
How to set some app application icons on the iPhone Apple phone that you don't want others to see? How to hide the app application settings on the mobile desktop so that they can be used normally afte
How Charles installs and uses
Principle and configuration of MPLS LDP
Write a standard character device driver with your hands
An idea of modifying vertex height with shader vertex shader
day 7/12
.net core 3.1版本配置跨域问题
Multi merchant mall system with relatively clean code
Configure CX Oracle solution (cx_oracle.databaseerror) dpi-1047: cannot locate a 64 bit Oracle client library: "th
4.8 HD-GR GNSS导航软件源码
PMP practice once a day | don't get lost in the exam -7.28 (including agility + multiple choices)
DataTables warning: table id=campaigntable - cannot reinitialize datatable. solve
Drawing method using GL under URP
DAY:7/11
MPLS LDP的原理与配置
Jwy-32b voltage relay