Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QML LandmarkAbstractModel Element

The LandmarkAbstractModel element is an uncreatable / uninstantiable base element for LandmarkModel and LandmarkCategoryModel. It defines many common properties for the two models. More...

Inherited by LandmarkCategoryModel and LandmarkModel.

  • List of all members, including inherited members
  • Properties

    Signals

    Methods

    Detailed Description

    The LandmarkAbstractModel element is an uncreatable / uninstantiable base element for LandmarkModel and LandmarkCategoryModel. It defines many common properties for the two models.

    This element is part of the QtMobility.location 1.1 module.

    See also LandmarkModel and LandmarkCategoryModel.

    Property Documentation

    autoUpdate : bool

    Controls whether the model data should be automatically updated when appropriate events occur: limit changes, offset changes, filter changes, filter contents change, or sorting rules change. Property also controls whether the data is updated automatically once model instantiation is completed.

    Note: while autoUpdate adds to development comfort, each change in appropriate parameters cause full fetch from underlying database and therefore its use should be thought through. E.g. if your application inherently behaves such that filters, their contents, and underlying database change very frequently, it may be wiser to bind a manual update call to a less hectic trigger source.

    This documentation was introduced in Qt Mobility Mobility 1.2.


    read-onlycount : int

    Indicates the number of items currently in the model (landmarks/categories).

    This documentation was introduced in Qt Mobility Mobility 1.2.


    read-onlyerror : string

    Human readable string of the last error that occurred (read-only).

    This documentation was introduced in Qt Mobility Mobility 1.2.


    limit : int

    Sets the maximum amount of items held by the model.

    This documentation was introduced in Qt Mobility Mobility 1.2.


    offset : int

    Sets the offset for the landmarks. For example if one creates a tabbed / paged application, the offset could be changed dynamically by a multiple of items per page.

    This documentation was introduced in Qt Mobility Mobility 1.2.


    sortBy : enumeration

    Specifies the role to sort the items by.

    Note: both sortBy and sortOrder incur performance costs. If the order is not important (e.g. when displaying landmarks as Map objects) it is advisable not to set them.

    This documentation was introduced in Qt Mobility Mobility 1.2.


    sortOrder : enumeration

    Specifies the sort order.

    Note: both sortBy and sortOrder incur performance costs. If the order is not important (e.g. when displaying landmarks as Map objects) it is advisable not to set them.

    This documentation was introduced in Qt Mobility Mobility 1.2.


    Signal Documentation

    LandmarkAbstractModel::databaseChanged ()

    This handler is called when the data in the underlying data storage has changed. If autoUpdate is true, model data will be updated shortly afterwards.

    This documentation was introduced in Qt Mobility Mobility 1.2.


    LandmarkAbstractModel::modelChanged ()

    This handler is called when the model data has changed.

    This documentation was introduced in Qt Mobility Mobility 1.2.


    Method Documentation

    LandmarkAbstractModel::update ()

    Updates the items represented by the model from the underlying store.

    This documentation was introduced in Qt Mobility Mobility 1.2.

    See also autoUpdate.


    Publicité

    Best Of

    Actualités les plus lues

    Semaine
    Mois
    Année
    1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 65
    2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
    3. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
    4. BlackBerry 10 : premières images du prochain OS de RIM qui devrait intégrer des widgets et des tuiles inspirées de Windows Phone 0
    5. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
    6. Adieu qmake, bienvenue qbs : Qt Building Suite, un outil déclaratif et extensible pour la compilation de projets Qt 17
    7. La rubrique Qt a besoin de vous ! 1
    Page suivante

    Le Qt Developer Network au hasard

    Logo

    Applications mobiles modernes avec Qt et QML

    Le Qt Developer Network est un réseau de développeurs Qt anglophone, où ils peuvent partager leur expérience sur le framework. Lire l'article.

    Communauté

    Ressources

    Liens utiles

    Contact

    • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

    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 !
     
     
     
     
    Partenaires

    Hébergement Web