QLandmarkAttributeFilter Class ReferenceThe QLandmarkAttributeFilter class provides filtering on various landmark attributes. More... #include <QLandmarkAttributeFilter> Inherits: QLandmarkFilter. This class was introduced in Qt Mobility 1.1. Public Types
Public Functions
Detailed DescriptionThe QLandmarkAttributeFilter class provides filtering on various landmark attributes. You can provide various keys which describe the attribute(s) to search. Precisely which keys may be used depends on the manager and these can be retrieved by using QLandmarkManager::searchableLandmarkAttributeKeys(). The table below outlines some keys that may be used with the default managers on the currently supported platforms. The match flags may be used for attributes which are of string type (typically most, if not all searchable attributes are string types).
Please note that different platforms support different capabilities with the attribute filter.
Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QLandmarkAttributeFilter::AndOperation | 0 | Landmarks must match all the attributes provided by the filter. |
QLandmarkAttributeFilter::OrOperation | 1 | Landmarks must match at least one attribute provided by the filter. |
Creates an attribute filter.
Constructs a copy of other if possible, otherwise constructs a new attribute filter.
This function was introduced in Qt Mobility 1.1.
Destroys the filter.
Returns the value of the attribute corresponding to key.
If the attribute isn't set an invalid QVariant is returned.
This function was introduced in Qt Mobility 1.1.
See also setAttribute().
Returns the keys of all attributes set in the filter.
This function was introduced in Qt Mobility 1.1.
Clears all attributes from the filter.
This function was introduced in Qt Mobility 1.1.
Returns the match flags for a particular key. The match flags are only take into consideration when the attribute for a particular key is a string. In all other cases the match flags are ignored.
This function was introduced in Qt Mobility 1.1.
Returns the operation to be used by the filter when multiple attributes are provided.
This function was introduced in Qt Mobility 1.1.
See also setOperationType().
Removes the attribute corresponding to key from the filter.
This function was introduced in Qt Mobility 1.1.
Sets the value of the attribute corresponding to key.
For string based attributes a set of matching flags can be provided to define how the string values should be matched. For non-string based attributes the flags are ignored. The beahviour of the filter is undefined if an invalid QVariant is used as a value
This function was introduced in Qt Mobility 1.1.
See also attribute().
Sets the value of all the attributes correponding to those in keys.
For string based attributes a set of matching flags can be provided to define how the string values should be matched. For non-string based attributes the flags are ignored. The behaviour of the filter is undefined if an invalid QVariant is used as value.
This function was introduced in Qt Mobility 1.1.
Sets the operation to be used by the filter when multiple attributes are provided to operationType.
This function was introduced in Qt Mobility 1.1.
See also operationType().
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