以下成員源於類 QResource 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
void
|
addSearchPath (const QString & path ) |
(obsolete)
QStringList
|
searchPaths () |
[static]
void
QResource::
addSearchPath
(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
path
must be an absolute path (start with
/
).
The default search path is to search only in the root (
:/
). The last path added will be consulted first upon next
QResource
創建。
[static]
QStringList
QResource::
searchPaths
()
使用 QDir::searchPaths () 代替。
Returns the current search path list. This list is consulted when creating a relative resource.
另請參閱 QDir::addSearchPath () 和 QDir::setSearchPaths ().