Obsolete Members for QFile

The following members of class QFile are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Types

(obsolete) typedef EncoderFn

公有函数

(obsolete) QString readLink() const
  • 2 个公有函数继承自 QObject

静态公有成员

(obsolete) QString readLink(const QString &fileName)
(obsolete) void setDecodingFunction(DecoderFn function)
(obsolete) void setEncodingFunction(EncoderFn function)
  • 1 个静态公有成员继承自 QObject

成员类型

typedef QFile::EncoderFn

This is a typedef for a pointer to a function with the following signature:


  QByteArray myEncoderFunc(const QString &fileName);

参见 setEncodingFunction() and encodeName().

成员函数

Use symLinkTarget() instead.

Use symLinkTarget() instead.

[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() and 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() and setDecodingFunction().