QML DocumentGalleryModel ElementThe DocumentGalleryModel element is used to specify a model containing items from the document gallery. More... Properties
MethodsDetailed DescriptionThis element is part of the QtMobility.gallery 1.1 module. The properties that should be returned for each item by the query are specified in properties. In addition all queries return the following properties:
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 } } } See also DocumentGalleryItem and DocumentGalleryType. Property DocumentationThis property holds whether a query should refresh its results automatically. This documentation was introduced in Qt Mobility Mobility 1.1. This property holds the number of results returned by a query. This documentation was introduced in Qt Mobility Mobility 1.1. This property contains criteria to used to filter the results of a query. This documentation was introduced in Qt Mobility Mobility 1.1. This property contains the maximum number of items returned by a query. This documentation was introduced in Qt Mobility Mobility 1.1. This property holds the offset of the first item returned by a query. This documentation was introduced in Qt Mobility Mobility 1.1. This property holds the current progress of the request, from 0.0 (started) to 1.0 (finished). This documentation was introduced in Qt Mobility Mobility 1.1. This property holds the item properties a query should return values for. All supported properties are listed QDocumentGallery. This documentation was introduced in Qt Mobility Mobility 1.1. This property contains the id of an item that a query should return the descendants of. This documentation was introduced in Qt Mobility Mobility 1.1. This property contains the type of item a query should return. It can be one of:
The default value is DocumentGallery.File This documentation was introduced in Qt Mobility Mobility 1.1. The property contains whether a query should count the direct descendants of the rootItem or all descendants. This documentation was introduced in Qt Mobility Mobility 1.1. This property holds the properties the results of a query should be sorted on. Prefixing a property name with the '+' character indicates it should be sorted in ascending order, and a '-' character prefix indicates a descending order. If there is no prefix ascending order is assumed. This documentation was introduced in Qt Mobility Mobility 1.1. This property holds the status of a query. It can be one of:
This documentation was introduced in Qt Mobility Mobility 1.1. Method DocumentationCancels an executing query. This documentation was introduced in Qt Mobility Mobility 1.1. Clears the results of a query. This documentation was introduced in Qt Mobility Mobility 1.1. Returns the result at index in a query model. query.get(0).title This documentation was introduced in Qt Mobility Mobility 1.1. Returns the value of property from the result at index. query.getProperty(0, "title") This documentation was introduced in Qt Mobility Mobility 1.1. Re-queries the gallery. This documentation was introduced in Qt Mobility Mobility 1.1. Changes the item at index in the list model with the values in dict. Properties not appearing in dict are left unchanged. This documentation was introduced in Qt Mobility Mobility 1.1. Changes the property of the result at index in a model to value. model.setProperty(0, "rating", 4) This documentation was introduced in Qt Mobility Mobility 1.1. |
Publicité
Best OfActualités les plus luesSemaine
Mois
Année
![]()
![]() Le Qt Quarterly au hasard![]() Conserver la réactivité de l'IHMQt Quarterly est la revue trimestrielle proposée par Nokia et à destination des développeurs Qt. Ces articles d'une grande qualité technique sont rédigés par des experts Qt. Lire l'article.
CommunautéRessources
Liens utilesContact
Qt dans le magazine |
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtmobility-1.2 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com