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 |
Public Functions
(obsolete) void | dumpObjectInfo() |
(obsolete) void | dumpObjectTree() |
(obsolete) QString | readLink() const |
Static Public Members
(obsolete) QString | readLink(const QString &fileName) |
(obsolete) void | setDecodingFunction(QFile::DecoderFn function) |
(obsolete) void | setEncodingFunction(QFile::EncoderFn function) |
(obsolete) QString | trUtf8(const char *sourceText, const char *disambiguation = Q_OBJECT, int n = Q_OBJECT) |
Member Type Documentation
typedef QFile::EncoderFn
This typedef is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This is a typedef for a pointer to a function with the following signature:
QByteArray myEncoderFunc(const QString &fileName);
See also setEncodingFunction() and encodeName().
Member Function Documentation
QString QFile::readLink() const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Use symLinkTarget() instead.
[static]
QString QFile::readLink(const QString &fileName)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Use symLinkTarget() instead.
[static]
void QFile::setDecodingFunction(QFile::DecoderFn function)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
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.
See also setEncodingFunction() and decodeName().
[static]
void QFile::setEncodingFunction(QFile::EncoderFn function)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
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.
See also encodeName() and setDecodingFunction().
© 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.