Obsolete Members for QFileOpenEvent

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

公共函数

(deprecated in 6.6) bool openFile (QFile & file , QIODeviceBase::OpenMode flags ) const

成员函数文档编制

[deprecated in 6.6] bool QFileOpenEvent:: openFile ( QFile & file , QIODeviceBase::OpenMode flags ) const

This function is deprecated since 6.6. We strongly advise against using it in new code.

interpret the string returned by file ()

打开 QFile file referenced by this event in the mode specified by flags 。返回 true 若成功;否则返回 false .

This is necessary as some files cannot be opened by name, but require specific information stored in this event.