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. How to filter DocumentGalleryModel

How to filter DocumentGalleryModel

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.8k 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.
  • J Offline
    J Offline
    jkosonen
    wrote on last edited by
    #1

    Has anyone been able to filter DocumentGalleryModel?

    if using the example from http://doc.trolltech.com/qtmobility-1.1.1/qml-gallery.html
    @import QtMobility.gallery 1.1

     ...
    
     model: DocumentGalleryModel {
         rootType: DocumentGallery.Image
         properties: ["url"]
         filter: GalleryWildcardFilter {
             property: "fileName";
             value: "*.jpg";
         }
     }
    
     ...@
    

    I get error: "QML DocumentGalleryModel: The value of filter is unsupported"

    but if I use it without filter it works ok, returning all values.

    Here is also a bug report of it
    https://bugreports.qt.nokia.com//browse/QTMOBILITY-1656

    But if you have got this to work, please help

    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