输入/输出和联网

这些 Qt Core类用于处理外部设备、进程、文件等的输入和输出,以及操作文件和目录。

QBuffer

QByteArray 的 QIODevice 接口

QDataStream

向 QIODevice 序列化二进制数据

QDir

访问目录结构及其内容

QDirIterator

目录条目列表迭代器

QDirListing

用于目录条目的 STL 风格迭代器

QDirListing::DirEntry

QDirListing::const_iterator

QDirListing::sentinel

QFile

文件读写接口

QFileDevice

读取和写入打开文件的接口

QFileInfo

独立于操作系统的 API,用于检索文件系统条目的信息

QFileSystemWatcher

用于监控文件和目录修改的接口

QIODevice

Qt 中所有 I/O 设备的基础接口类

QLockFile

使用文件在进程间锁定

QNtfsPermissionCheckGuard

管理 NTFS 权限检查的 RAII 类

QProcess

用于启动外部程序并与之通信

QProcessEnvironment

保存可传递给程序的环境变量

QResource

直接读取资源的接口

QSaveFile

用于安全写入文件的接口

QSettings

与平台无关的持久应用程序设置

QSocketNotifier

支持监控文件描述符上的活动

QStorageInfo

提供有关当前挂载存储和驱动器的信息

QTemporaryDir

创建临时使用的唯一目录

QTemporaryFile

对临时文件进行操作的 I/O 设备

QTextStream

读写文本的便捷界面

QUrl

处理 URL 的便捷界面

QUrlQuery

操作 URL 查询中键值对的方法

Qt3DRender::QSceneLoader

提供加载现有场景的功能

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.