9QDir(
"/home/user/Documents")
15QDir(
"images/landscape.png")
35 qWarning(
"Cannot find the example directory");
42 qWarning(
"Cannot find the \"/tmp\" directory");
68s =
dir.relativeFilePath(
"images/file.jpg");
69s =
dir.relativeFilePath(
"/home/mary/file.txt");
77QPixmap
pixmap(
"icons:undo.png");
95 qDebug(
"They're the same");
139QString absolute =
"/local/bin";
QString dirName() const
Returns the name of the directory; this is not the same as the path, e.g.
static void setSearchPaths(const QString &prefix, const QStringList &searchPaths)
static bool setCurrent(const QString &path)
Sets the application's current working directory to path.
static QDir root()
Returns the root directory.
QString canonicalPath() const
Returns the canonical path, i.e.
static QString homePath()
Returns the absolute path of the user's home directory.
static QString rootPath()
Returns the absolute path of the root directory.
\inmodule QtCore \reentrant
bool open(OpenMode flags) override
Opens the file using OpenMode mode, returning true if successful; otherwise false.
\macro QT_RESTRICTED_CAST_FROM_ASCII
GLsizei const GLchar *const * path
static QString absolutePath(const QString &path)
#define Q_CLEANUP_RESOURCE(name)
#define Q_INIT_RESOURCE(name)
MyPrototype myFunction
[0]