Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-75304

QFileDialog (non-native) uses file size suffix that is different from platform

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.12.3, 5.12.4, 5.15.0
    • None
    • Windows

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            ev E Visser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes