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

QFileSystemModel is not correctly sorted

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • Some future release
    • 4.6.3
    • Widgets: Itemviews
    • None
    • Windows XP SP3

    Description

      I have QTreeView with QFileSystemModel.

          treeView=new QTreeView;
          treeView->header()->hide();
          fsModel=new QFileSystemModel;
          fsModel->setRootPath(QDir::rootPath());
          fsTreeView->setModel(fsModel);
      

      I have 2 logical disks C and E. When I expand disk C in treeview files are after folders. When I expand disk E - files and folders are mixed, they are all sorted alphabeticaly by name.

      Attachments

        1. pic1.PNG
          pic1.PNG
          49 kB
        2. pic2.PNG
          pic2.PNG
          66 kB
        3. pic3.PNG
          pic3.PNG
          51 kB
        4. pic4.PNG
          pic4.PNG
          63 kB
        5. test.7z
          0.5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            pete Petr Krasnoshchekov
            Votes:
            11 Vote for this issue
            Watchers:
            14 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes