以下成员源于类 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.