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

QFileSystemModel is not correctly sorted

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Invalid
    • Affects Version/s: 4.6.3
    • Fix Version/s: Some future release
    • Component/s: Widgets: Itemviews
    • Labels:
      None
    • Environment:
      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. test.7z
          0.5 kB
        2. pic4.PNG
          pic4.PNG
          63 kB
        3. pic3.PNG
          pic3.PNG
          51 kB
        4. pic2.PNG
          pic2.PNG
          66 kB
        5. pic1.PNG
          pic1.PNG
          49 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            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