Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1887

sorting QML DocumentGalleryModel according to filepath does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 1.1.0
    • Document Gallery
    • None

      I am trying to sort the QML DocumentGalleryModel according to filepath so that its sorted in the ascending order of file path. Here is my code

      import QtQuick 1.0
      import QtMobility.gallery 1.1
      DocumentGalleryModel
      {
      rootType: DocumentGallery.Audio
      properties: ["filePath","url","fileName","path","fileExtension","albumTitle","artist"]
      sortProperties: [ "filePath" ]
      }

      But when the results are viewed, the sorting is not done. The items in the model are displayed randomly without any order. However if I try to sort with albumTitle, the returned results are perfectly sorted

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

            satu.m.makela satu makela
            naveenr6 Naveen R
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes