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

QFileSystemModel is not correctly sorted

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes