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 () 代替。