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

sorting QML DocumentGalleryModel according to filepath does not work

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Not Evaluated
    • Resolution: Invalid
    • 1.1.0
    • None
    • Document Gallery
    • None

    Description

      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

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes