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

QFileSystemModel Unicode support

    XMLWordPrintable

Details

    Description

      In our project, we are using the QFileSystemModel to show images in a QListView. The QFileSystemModel is extended with a custom QFileIconProvider for compressing smaller/low res JPG icons. This is working fine for non-Unicode file names.

      Now we are adding support for Unicode, but the model seems to filter out the Unicode characters. For example: i have a file called "Image箇32". A call to the icon provider reveals a file name "Image32" .. the 箇 is simply gone. This results in incorrect behaviour.

      The same happens with QFileSystemModel::filePath(modelIndex), this also returns the incorrect string.

      Attachments

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

        Activity

          People

            w00t Robin Burchell
            dannybergh DannyBergh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes