以下成员源于类 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
creation.
[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 ().