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  · 

QWSEvent Class Reference
[QtGui module]

The QWSEvent class encapsulates an event in Qt for Embedded Linux. More...

 #include <QWSEvent>

Public Types

  • enum Type { NoEvent, Connected, Mouse, Focus, ..., ScreenTransformation }

Detailed Description

The QWSEvent class encapsulates an event in Qt for Embedded Linux.

When running a Qt for Embedded Linux application, it either runs as a server or connects to an existing server. All system generated events are passed to the server application which then propagates the event to the appropriate client.

Whenever the server receives an event, it queries its stack of top-level windows to find the window containing the event's position. Each window can identify the client application that created it, and returns its ID to the server upon request. Finally, the server forwards the event, encapsulated by an instance of the QWSEvent class, to the appropriate client.

The server communicates with the client applications over the UNIX domain socket. You can retrieve direct access to all the events a client receives from the server, by reimplementing QApplication's qwsEventFilter() function.

QWSEvent provides the Type enum specifying the origin of the event. Internally, each type is represented by a QWSEvent subclass, e.g., QWSKeyEvent.

See also QWSServer, QWSClient, and Qt for Embedded Linux Architecture.


Member Type Documentation

enum QWSEvent::Type

This enum describes the origin of the event.

ConstantValueDescription
QWSEvent::NoEvent0No event has occurred.
QWSEvent::Connected1An application has connected to the server.
QWSEvent::Mouse2A mouse button is pressed or released, or the mouse cursor is moved. See also Qt for Embedded Linux Pointer Handling.
QWSEvent::Focus3A window has lost or received focus.
QWSEvent::Key4A key is pressed or released. See also Qt for Embedded Linux Character Input.
QWSEvent::Region5A region has changed.
QWSEvent::Creation6The server has created an ID, typically for a window.
QWSEvent::PropertyNotify7A property has changed.
QWSEvent::PropertyReply8The server is responding to a request for a property's value.
QWSEvent::SelectionClear9A selection is deleted.
QWSEvent::SelectionRequest10The server has queried for a selection.
QWSEvent::SelectionNotify11A new selection has been created.
QWSEvent::MaxWindowRect12The server has changed the maximum window for an application.
QWSEvent::QCopMessage13A new Qt Cop message has appeared. See also QCopChannel
QWSEvent::WindowOperation14A window operation, e.g. resizing, has occurred.
QWSEvent::IMEvent15An input method has been used to enter text for languages with non-Latin alphabets. See also QWSInputMethod.
QWSEvent::IMQuery16An input method query for a specified property has occurred. See also QWSInputMethod.
QWSEvent::NEvent21The number of events has changed.
QWSEvent::Embed18An event used internally to implement embedded windows. See also QWSEmbedWidget.
QWSEvent::ScreenTransformation20An event used internally to notify the client processes that the screen has changed for example, rotation, etc.

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 82
  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. 2017 : un quinquennat pour une nouvelle version du C++ ? Possible, selon Herb Sutter 6
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 4.5
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