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 ThemeEffect Element

The ThemeEffect element represents a themed feedback effect. More...

  • List of all members, including inherited members
  • Properties

    Methods

    Detailed Description

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

    This element is used for playing feedback effects that follow the system theme. The actual feedback might be haptic, audio or some other method.

     // My custom button
     MouseArea {
         Image { /* ... Pretty graphics here ... */ }
         onClicked: ThemeEffect {effect: ThemeEffect.BasicButton;}
     }
    
     ThemeEffect {
         id: myOtherThemeEffect
         effect: "RotateStep"
     }
    
     MouseArea {
         onClicked: myOtherThemeEffect.play();
     }

    Property Documentation

    read-onlyeffect : ThemeEffect

    This property holds the specific themed effect type to play. It is one of:

    • ThemeEffect.Basic - Generic feedback.
    • ThemeEffect.Sensitive - Generic sensitive feedback.
    • ThemeEffect.BasicButton - Feedback for interacting with a button (e.g. pressing).
    • ThemeEffect.SensitiveButton - Sensitive feedback for interacting with a button (e.g. auto repeat).
    • ThemeEffect.BasicKeypad - Feedback for interacting with a keypad button.
    • ThemeEffect.SensitiveKeypad - Sensitive feedback for interacting with a keypad button.
    • ThemeEffect.BasicSlider - Feedback for moving a slider.
    • ThemeEffect.SensitiveSlider - Sensitive feedback for moving a slider.
    • ThemeEffect.BasicItem - Feedback when interacting with a list or grid item.
    • ThemeEffect.SensitiveItem - Sensitive feedback when interacting with a list or grid item.
    • ThemeEffect.ItemScroll - Feedback when scrolling a list or grid item view.
    • ThemeEffect.ItemPick - Feedback when selecting an item to move in a list or grid view.
    • ThemeEffect.ItemDrop - Feedback when dropping an item in a list or grid view.
    • ThemeEffect.ItemMoveOver - Feedback when moving an item in a list or grid view.
    • ThemeEffect.BounceEffect - Feedback for a bounce effect.
    • ThemeEffect.CheckBox - Feedback for selecting a checkbox.
    • ThemeEffect.MultipleCheckBox - Feedback for selecting checkboxes of multiple items.
    • ThemeEffect.Editor - Feedback for interacting with an editor.
    • ThemeEffect.TextSelection - Feedback for selecting text.
    • ThemeEffect.BlankSelection - Feedback for a blank selection.
    • ThemeEffect.LineSelection - Feedback for selecting a line.
    • ThemeEffect.EmptyLineSelection - Feedback for selecting an empty line.
    • ThemeEffect.PopUp - Generic feedback for interacting with a popup.
    • ThemeEffect.PopupOpen - Generic feedback when a popup opens.
    • ThemeEffect.PopupClose - Generic feedback when a popup closes.
    • ThemeEffect.Flick - Generic feedback when starting a flick gesture.
    • ThemeEffect.StopFlick - Generic feedback when stopping a flick.
    • ThemeEffect.MultiPointTouchActivate - Generic feedback when a touch gesture with more than one point is started.
    • ThemeEffect.RotateStep - Feedback when rotating using a gesture.
    • ThemeEffect.LongPress - Feedback for a long press (or tap and hold) gesture.
    • ThemeEffect.PositiveTacticon - Generic feedback for notification of a successful operation.
    • ThemeEffect.NeutralTacticon - Generic feedback for notification.
    • ThemeEffect.NegativeTacticon - Generic feedback for notification of a failed operation.

    This documentation was introduced in Qt Mobility Mobility 1.1.

    See also QFeedbackEffect::ThemeEffect.


    read-onlysupported : bool

    This property is true if the system supports themed feedback effects.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    Method Documentation

    ThemeEffect::play ()

    Call this to play the themed effect.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    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 64
    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 blog Digia au hasard

    Logo

    Créer des applications avec un style Metro avec Qt, exemples en QML et C++, un article de Digia Qt traduit par Thibaut Cuvelier

    Le blog Digia est l'endroit privilégié pour la communication sur l'édition commerciale de Qt, où des réponses publiques sont apportées aux questions les plus posées au support. 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