Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.12.3, 5.12.4, 5.15.0
-
None
Description
A QFileDialog instance (in non-native mode under Windows) use the IEC format in showing the file size (in detail mode), like "KiB". The file size is taken from the QFileSytemModel and uses the locale to get the correct text.
QString QFileSystemModelPrivate::size(qint64 bytes) { return QLocale::system().formattedDataSize(bytes); }
Although this might be correct, it is not consistent with the native platform file dialog and is most likely not something most users are familiar with. Also note that this behavior is different from Qt 5.6.3.
Please use the 'QLocale::DataSizeTraditionalFormat' format or provide a way to override the IEC format.