Obsolete Members for QFileInfo

以下成员源于类 QFileInfo 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

(obsolete) QDateTime created () const
(obsolete) QString readLink () const

成员函数文档编制

QDateTime QFileInfo:: created () const

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

Returns the date and time when the file was created, the time its metadata was last changed or the time of last modification, whichever one of the three is available (in that order).

This function is deprecated. Instead, use the birthTime () function to get the time the file was created, metadataChangeTime () to get the time its metadata was last changed, or lastModified () to get the time it was last modified.

If the file is a symlink, the time of the target file is returned (not the symlink).

另请参阅 birthTime (), metadataChangeTime (), lastModified (),和 lastRead ().

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

使用 symLinkTarget () 代替。