Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. About QML FolderListModel,it looks like a bug
Forum Updated to NodeBB v4.3 + New Features

About QML FolderListModel,it looks like a bug

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 597 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zhangXianxiang
    wrote on last edited by
    #1

    0_1535358190488_QQ.png

    Hi, I use ListView and FolderListModel to read a path,I want to sort it Through the Name.
    [want result:aaa,B1,B2,B11,B21]
    Normally,the result will be B1->B2->B11,but my result not, as shown above .
    So,I want to ask if there is a good solution

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      zhangXianxiang
      wrote on last edited by
      #2

      0_1535358884771_ww.png

      The result for windows OS10 sort.Sort By name.
      QML seems sort by string,maybe it not consider other type.

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        This is correct alphabetical sort, it is not a bug.

        However, the model should support natural number sort, this is a missing feature - please consider filing a feature request on Qt bugtracker.

        (Z(:^

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          zhangXianxiang
          wrote on last edited by
          #4

          @sierdzio Yes,I think so.^_^
          thank you!

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved