以下成員源於類 QResource 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
bool
|
isCompressed () const |
(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
創建。
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
返迴
true
if the resource represents a file and the data backing it is in a compressed format, false otherwise. If the data is compressed, check
compressionAlgorithm
() to verify what algorithm to use to decompress the data.
注意: This function is deprecated and can be replaced with
compressionAlgorithm() != NoCompression
另請參閱 data (), compressionAlgorithm (),和 isFile ().
[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 ().