3 ms·
Qt's file management seems extremely poor though. It's not even possible to set the last modified date/time on a file through Qt. :(
by justinclift 9y ago
Qt's file management seems extremely poor though. It's not even possible to set the last modified date/time on a file through Qt. :(
- user5994461 9y agoPoor compared to what? The stdlib doesn't have anything to use files. The C win32 API CreateFile() has 6 arguments each more obscure than the previous one. Gotta support sync and async in a single function. The C kernel API NtCreateFile() has around 13 arguments, probably including enum with 105 different values.
- justinclift 9y agoWell, Qt provides a QFile class to do standard file operations. eg create, remove, rename, etc. It also has the QFileInfo class to retrieve file info, such as creation/last-modified/last-accessed date. It just seems super weird to not also have the matching functions available to set those dates. Which we really wanted for our client side Qt/C++ GUI, as I'd just finished doing the server side part in Go which does provide those. And Qt seems to provide pretty much everything else... but this one weird bit which is missing. :/