Obsolete Members for QDir

The following members of class QDir are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

公有函数

(obsolete) QDir &operator=(const QString &path)

静态公有成员

(obsolete) void addResourceSearchPath(const QString &path)

成员函数

[static] void QDir::addResourceSearchPath(const QString &path)

Use QDir::addSearchPath() with a prefix instead.

Adds path to the search paths searched in to find resources that are not specified with an absolute path. The default search path is to search only in the root (:/).

参见 The Qt Resource System.

QDir &QDir::operator=(const QString &path)

This is an overloaded function.

Sets the directory path to the given path.

Use setPath() instead.