Why QFile::close() call QIODevice::close() directly instead of call QFileDevice::close()
-
When I debugged the Qt source code, I found that QFile::close() call QIODevice::close() directly instead of call QFileDevice::close().


-
AFAICT QFile does not override QFileDevice::close() so QFile::close() is QFileDevice::close(). QFileDevice::close() calls QIODevice::close() after flush().
Perhaps you can identify where the QFile source code calls QIODevice::close() directly.
@ChrisW67 I made a breakpoint at QFileDevice::close(),but the debugger never goes in.And only the QFileDevice::close() calls the QIODevice::close().How I found about this, because I found the file is still occupied after calls QFileDevice::close().But when not call close() explicitly and in QFile dctor call QFileDevice::close() implicit, the file will not be occupied.And this is only happend in my computer.
