Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个QFile,但我需要在它上面调用一些只接受一个HANDLE. 有没有办法检索底层HANDLE的QFile?
QFile
HANDLE
我找到了一种使用方法_get_osfhandle()(在 MinGW 和 VS 中可用):
_get_osfhandle()
QFile file; .... HANDLE handle = (HANDLE) _get_osfhandle(file.handle()).