QWSServer Class Reference |
Constant | Value | Description |
---|---|---|
QWSServer::MousePress | 0 | An event generated by pressing a mouse button. |
QWSServer::MouseRelease | 1 | An event generated by relasing a mouse button. |
QWSServer::MouseMove | 2 | An event generated by moving the mouse cursor. |
QWSServer::MouseOutside | 3 | This value is only reserved, i.e., it is not used in current implementations. |
See also QWSInputMethod and setCurrentInputMethod().
This enum specifies the various events that can occur in a top-level window.
Constant | Value | Description |
---|---|---|
QWSServer::Create | 0x0001 | A new window has been created (by the QWidget constructor). |
QWSServer::Destroy | 0x0002 | The window has been closed and deleted (by the QWidget destructor). |
QWSServer::Hide | 0x0004 | The window has been hidden using the QWidget::hide() function. |
QWSServer::Show | 0x0008 | The window has been shown using the QWidget::show() function or similar. |
QWSServer::Raise | 0x0010 | The window has been raised to the top of the desktop. |
QWSServer::Lower | 0x0020 | The window has been lowered. |
QWSServer::Geometry | 0x0040 | The window has changed size or position. |
QWSServer::Active | 0x0080 | The window has become the active window (i.e., it has keyboard focus). |
QWSServer::Name | 0x0100 | The window has been named. |
See also windowEvent().
Activates the given keyboard filter all key events generated by physical keyboard drivers (i.e., events sent using the processKeyEvent() function).
Note that the filter is not invoked for keys generated by virtual keyboard drivers (i.e., events sent using the sendKeyEvent() function).
See also removeKeyboardFilter().
Returns the brush used as background in the absence of obscuring windows.
See also setBackground().
Returns the list of current top-level windows.
Note that the collection of top-level windows changes as applications add and remove widgets so it should not be stored for future use. The windows are sorted in stacking order from top-most to bottom-most.
Use the QWSWindow::client() function to retrieve the client application that owns a given window.
See also windowAt() and instance().
Closes all the keyboard devices (specified by the QWS_KEYBOARD environment variable) by deleting the associated keyboard drivers.
See also openKeyboard() and keyboardHandler().
Closes all pointer devices (specified by the QWS_MOUSE_PROTO environment variable) by deleting the associated mouse drivers.
See also openMouse() and mouseHandler().
Enables painting onto the screen if enable is true; otherwise painting is disabled.
See also Qtopia Core Architecture.
Returns a pointer to the server instance.
Note that the pointer will be 0 if the application is not the server, i.e., if the QApplication::type() function doesn't return QApplication::GuiServer.
This function was introduced in Qt 4.2.
See also clientWindows() and windowAt().
Returns true if the cursor is visible; otherwise returns false.
See also setCursorVisible().
Returns the primary keyboard driver.
See also setKeyboardHandler(), openKeyboard(), and closeKeyboard().
This signal is emitted whenever some text is selected in any of the running applications, passing the selected text in the selection parameter.
See also windowEvent().
Returns the primary mouse driver.
See also setMouseHandler(), openMouse(), and closeMouse().
This signal is emitted whenever a new QCopChannel object is created, passing the channel's name in the channel parameter.
See also removedChannel().
Opens the keyboard devices specified by the QWS_KEYBOARD environment variable.
See also closeKeyboard() and keyboardHandler().
Opens the mouse devices specified by the QWS_MOUSE_PROTO environment variable.
See also closeMouse() and mouseHandler().
Processes the given key event. The key is identified by its unicode value and the given keycode, modifiers, isPress and autoRepeat parameters.
The keycode parameter is the Qt keycode value as defined by the Qt::Key enum. The modifiers is an OR combination of Qt::KeyboardModifier values, indicating whether Shift/Alt/Ctrl keys are pressed. The isPress parameter is true if the event is a key press event and autoRepeat is true if the event is caused by an auto-repeat mechanism and not an actual key press.
This function is typically called internally by keyboard drivers.
See also sendKeyEvent() and Qtopia Core Character Input.
Refreshes the display by making the screen driver update the entire display.
See also QScreen::exposeRegion().
This is an overloaded member function, provided for convenience.
Refreshes the given region of the display.
Removes and deletes the most recently added filter.
Note that the programmer is responsible for removing each added keyboard filter.
See also addKeyboardFilter().
This signal is emitted immediately after the given the QCopChannel object specified by channel, is destroyed.
Note that a channel is not destroyed until all its listeners have been unregistered.
See also newChannel().
Resumes pointer handling by reactivating all the mouse drivers registered by the QWS_MOUSE_PROTO environment variable.
See also suspendMouse() and QWSMouseHandler::resume().
Activates the screen saver if activate is true; otherwise it is deactivated.
See also screenSaverActive() and setScreenSaver().
Returns true if the screen saver is active; otherwise returns false.
See also screenSaverActivate().
Sends the given input method event.
The QInputMethodEvent class is derived from QWSEvent, i.e., it is a QWSEvent object of the QWSEvent::IMEvent type.
If there is a window actively composing the preedit string, the event is sent to that window. Otherwise, the event is sent to the window currently in focus.
See also sendIMQuery() and QWSInputMethod::sendEvent().
Sends an input method query for the given property.
To receive responses to input method queries, the virtual QWSInputMethod::queryResponse() function must be reimplemented in a QWSInputMethod subclass that is activated using the setCurrentInputMethod() function.
See also sendIMEvent() and setCurrentInputMethod().
Sends the given key event. The key is identified by its unicode value and the given keycode, modifiers, isPress and autoRepeat parameters.
Use this function to send key events generated by "virtual keyboards" (note that the processKeyEvent() function is impelemented using this function).
The keycode parameter is the Qt keycode value as defined by the Qt::Key enum. The modifiers is an OR combination of Qt::KeyboardModifier values, indicating whether Shift/Alt/Ctrl keys are pressed. The isPress parameter is true if the event is a key press event and autoRepeat is true if the event is caused by an auto-repeat mechanism and not an actual key press.
See also processKeyEvent() and Qtopia Core Character Input.
Sets the brush used as background in the absence of obscuring windows, to be the given brush.
See also backgroundBrush().
Sets the current input method to be the given method.
See also sendIMQuery() and sendIMEvent().
Shows the cursor if visible is true: otherwise the cursor is hidden.
See also isCursorVisible().
Sets the keyboard driver that will be used if the QWS_KEYBOARD environment variable is not defined, to be the given keyboardDriver.
Note that the default is platform-dependent.
See also setKeyboardHandler() and Qtopia Core Character Input.
Sets the mouse driver that will be used if the QWS_MOUSE_PROTO environment variable is not defined, to be the given mouseDriver.
Note that the default is platform-dependent.
See also setMouseHandler() and Qtopia Core Pointer Handling.
Sets the primary keyboard driver to be the given driver.
Qtopia Core provides several ready-made keyboard drivers, and custom drivers are typically added using Qt's plugin mechanism. See the Qtopia Core Character Input documentation for details.
See also keyboardHandler() and setDefaultKeyboard().
Sets the maximum area of the screen that Qtopia Core applications can use, to be the given rectangle.
See also QWidget::showMaximized().
Sets the primary mouse driver to be the given driver.
Qtopia Core provides several ready-made mouse drivers, and custom drivers are typically added using Qt's plugin mechanism. See the Qtopia Core Pointer Handling documentation for details.
See also mouseHandler() and setDefaultMouse().
Installs the given screenSaver, deleting the current screen saver.
See also screenSaverActivate(), setScreenSaverInterval(), and setScreenSaverIntervals().
Sets the timeout interval for the screensaver to the specified milliseconds. To turn off the screensaver, set the timout interval to 0.
See also setScreenSaverIntervals().
Specifies the time intervals (in milliseconds) between the different levels of screen responsiveness.
Qtopia Core supports multilevel screen saving, i.e., it is possible to specify several different levels of screen responsiveness by implementing the QWSScreenSaver::save() function. For example, you can choose to first turn off the light before you fully activate the screensaver. See the QWSScreenSaver documentation for details.
Note that an interval of 0 milliseconds will turn off the screensaver, and that the intervals array must be 0-terminated.
See also setScreenSaverInterval().
Suspends pointer handling by deactivating all the mouse drivers registered by the QWS_MOUSE_PROTO environment variable.
See also resumeMouse() and QWSMouseHandler::suspend().
Returns the window containing the given position.
Note that if there is no window under the specified point this function returns 0.
See also clientWindows() and instance().
This signal is emitted whenever something happens to a top-level window (e.g., it's created or destroyed), passing a pointer to the window and the event's type in the window and eventType parameters, respectively.
See also markedText().
Use the two-argument overload and call the QObject::setObjectName() function instead.
Sets the image used as background in the absence of obscuring windows, to be the given image.
Use the setBackground() function instead.
For example, if you have code like
QImage image; setDesktopBackground(image);
you can rewrite it as
QImage image; setBackground(QBrush(image));
This is an overloaded member function, provided for convenience.
Sets the color used as background in the absence of obscuring windows, to be the given color.
Use the setBackground() function instead.
For example, if you have code like
QColor color; setDesktopBackground(color);
you can rewrite it as
QColor color; setBackground(QBrush(color));
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.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