Obsolete Members for QDir

以下成员源于类 QDir 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

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

静态公共成员

(obsolete) void addResourceSearchPath (const QString & path )

成员函数文档编制

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

使用 QDir::addSearchPath () with a prefix instead.

添加 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 ( :/ ).

另请参阅 Qt 资源系统 .

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

这是重载函数。

Sets the directory path to the given path .

使用 setPath () 代替。