Obsolete Members for QFile

以下成員源於類 QFile 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共類型

(obsolete) typedef EncoderFn

公共函數

(obsolete) void dumpObjectInfo ()
(obsolete) void dumpObjectTree ()
(obsolete) QString readLink () const

靜態公共成員

(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)

成員類型文檔編製

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.

這是采用以下簽名的函數指針的 typedef:

QByteArray myEncoderFunc(const QString &fileName);
					

另請參閱 setEncodingFunction () 和 encodeName ().

成員函數文檔編製

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

使用 symLinkTarget () 代替。

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

使用 symLinkTarget () 代替。

[static] void QFile:: setDecodingFunction ( QFile::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 ( QFile::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 ().