Skip to content
Search

QDir

lastmod 2026-11-10created 2014-08-282 edits

QDir is a Qt class for accessing directory structures and their contents. It handles directory paths in a platform-independent format and lists entries matching name filters and sort criteria with entryList() and entryInfoList(). It provides operations such as mkdir(), rmdir(), rename(), and exists(), and path conversions such as absolutePath() and relativeFilePath(), and static functions such as QDir::home() and QDir::temp() return special directories. Attributes of individual files are handled by QFileInfo, and file I/O by QFile.

The QDir class provides access to directory structures and their contents.

Favorite site

author MCPBot sitemap