Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User robert26's Avatar
    Join Date
    Jul 2006
    Location
    Finland
    Posts
    26
    Hi!

    I want to display jpg images in a gallery using a DocumentGalleryModel. If I dont use a filter it works just fine (but of course all image types are displayed in that case), but as soon as I apply a filter to the DocumentGalleryModel I get the following error: "QML DocumentGalleryModel: The value of filter is unsupported". I tried differrent filters: GalleryWildcardFilter, GalleryEndsWithFilter, but to no avail.

    Hardware used: C7
    SDK used: Qt SDK 1.1
    Qt Creator 2.1.0
    Qt version: 4.7.3
    QT Mobility: 1.1.3

    Any idea why I get the error all the time?

    GalleryWildcardFilter :
    Code:
        GridView {
            id: grid
    
            model: DocumentGalleryModel {
                //autoUpdate: true
                rootType: DocumentGallery.Image            
                properties: [ "url" ]
    
                filter: GalleryWildcardFilter {
                    property: "fileName"
                    value: "*.jpg"
                }
    
            }
    
            delegate: imageDelegate
        }

    GalleryEndsWithFilter :
    Code:
        GridView {
            id: grid
    
            model: DocumentGalleryModel {
                rootType: DocumentGallery.Image            
                properties: [ "url" ]
    
                filter:  GalleryEndsWithFilter {
                    property: "fileName"
                    value: ".jpg"
                }
    
            }
    
            delegate: imageDelegate
        }
    Last edited by robert26; 2011-06-14 at 09:37.
    -Rob

  2. #2
    Nokia Developer Moderator gnuton's Avatar
    Join Date
    Mar 2009
    Posts
    1,024
    I tried the following code in simulator/linux and it works fine for me.

    import Qt 4.7
    import QtMobility.gallery 1.1

    Rectangle {
    width: 1024
    height: 768

    GridView {
    anchors.fill: parent
    cellWidth: 128
    cellHeight: 128

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

    delegate: Image {
    source: url
    width: 128
    height: 128
    }
    }
    }

  3. #3
    Registered User robert26's Avatar
    Join Date
    Jul 2006
    Location
    Finland
    Posts
    26
    Hi gnuton,

    can verify that your code snippet works on simulator/Windows, but it doesnt work on hardware. Same error message when testing with my Nokia C7:

    Code:
    Executable file: 10251 2011-06-14T10:30:29 C:\QtSDK11RC\Symbian\SDKs\Symbian3Qt473\epoc32\release\armv5\udeb\QtQuickTestApp.exe
    Starting application...
    Application running with pid 9890.
    [Qt Message] file:///C:/Private/e13e4628/qml/QtQuickTestApp/main.qml:13:8: QML DocumentGalleryModel: The value of filter is unsupported
    (main.qml contains nothing but your snippet)

    Will also check the Qt bug-tracker for problems ...

    -Robert
    -Rob

  4. #4
    Registered User kamalakshan's Avatar
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998
    There is some similar Bug reported for which poster has already commented. If required anyone interested can track it.

    http://bugreports.qt.nokia.com/browse/QTMOBILITY-1656

  5. #5
    Registered User robert26's Avatar
    Join Date
    Jul 2006
    Location
    Finland
    Posts
    26
    Yup, I commented on QtMobility-1656 and I am tracking it also. Keep you updated on the progress there (if there is any) ...
    -Rob

  6. #6
    Nokia Developer Champion kkrish's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,029
    Any updated on this?
    Getting the following error on Nokia E7 Belle device "QML DocumentGalleryModel: The value of filter is unsupported".

    Thanks and Regards,
    Kkrish

Similar Threads

  1. Many problems when using DocumentGalleryModel
    By mismael in forum [Archived] Qt Mobility Project
    Replies: 3
    Last Post: 2011-05-15, 15:20
  2. HTTP Filters
    By aquarian3183 in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2009-01-19, 11:25
  3. Camera Filters For Mobile Java?
    By mvinci in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2007-05-18, 17:36
  4. Intermediate Drivers or Network Filters
    By WeilinWang in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-04-11, 20:53

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved