Obsolete Members for QFile

以下成員源於類 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 QFile:: EncoderFn

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

QByteArray myEncoderFunc(const QString &fileName);
					

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

成員函數文檔編製

使用 symLinkTarget () 代替。

使用 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 ().