以下成员源于类 QFile 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
(obsolete)
typedef
|
EncoderFn |
(obsolete)
QString
|
readLink () const |
(obsolete)
QString
|
readLink (const QString & fileName ) |
(obsolete)
void
|
setDecodingFunction (DecoderFn function ) |
(obsolete)
void
|
setEncodingFunction (EncoderFn function ) |
这是采用以下签名的函数指针的 typedef:
QByteArray myEncoderFunc(const QString &fileName);
另请参阅 setEncodingFunction () 和 encodeName ().
使用 symLinkTarget () 代替。
[static]
QString
QFile::
readLink
(const
QString
&
fileName
)
使用 symLinkTarget () 代替。
[static]
void
QFile::
setDecodingFunction
(
DecoderFn
function
)
This function does nothing. It is provided for compatibility with Qt 4 code that attempted to set a different decoding function for file names. That feature is flawed and no longer supported in Qt 5.
另请参阅 setEncodingFunction () 和 decodeName ().
[static]
void
QFile::
setEncodingFunction
(
EncoderFn
function
)
This function does nothing. It is provided for compatibility with Qt 4 code that attempted to set a different encoding function for file names. That feature is flawed and no longer supported in Qt 5.
另请参阅 encodeName () 和 setDecodingFunction ().