WindowManagement Class Reference
|
Key | Description |
---|---|
/UI/ActiveWindow/Title | The title of the currently active window |
/UI/ActiveWindow/Rect | The rectangle of the currently active window |
/UI/ActiveWindow/Caption | The caption of the currently active window. The caption is the same as the title except that it isn't changed for popup windows that only consume a small part of the screen. |
These value space keys are updated if either the WindowManagement task is running, or at least one instance of the WindowManagement class has been instantiated.
This class is part of the Qt Extended server and cannot be used by other Qt Extended applications.
The DockArea enum type defines the areas where widgets can be docked:
Constant | Value | Description |
---|---|---|
WindowManagement::Top | 0 | - the top of the screen. |
WindowManagement::Bottom | 1 | - the Bottom of the screen. |
WindowManagement::Left | 2 | - the Left of the screen. |
WindowManagement::Right | 3 | - the Right of the screen. |
Construct a new WindowManagement instance with the specified parent.
Returns a reference to the name of the active application, ie the one that is visible. If there is no active application, the string is returned empty.
Sends a close message to the window winId. This is used for applications that do not support the Qt Extended soft menu bar.
See also supportsSoftMenus().
Docks a top-level widget window on a side of the screen specified by placement. The widget is placed according to the order that it was docked, its sizeHint() and whether previously docked widgets are visible. The desktop area available to QWidget::showMaximized() will exclude any visible docked widgets.
For example, if a widget is docked at the bottom of the screen, its sizeHint() will define its height and it will use the full width of the screen. If a widget is then docked to the right, its sizeHint() will define its width and it will be as high as possible without covering the widget docked at the bottom.
This function is useful for reserving system areas such as taskbars and input methods that should not be covered by applications. Even after calling this method, an application can manually position itself over the docked window. To prevent this, also call WindowManagement::protectWindow() on the window.
This is an overloaded member function, provided for convenience.
Normally the QWidget::sizeHint() of the docked widget is used to determine its docked size. If the sizeHint() is not correct, the size parameter can be used to override it. The window, placement and screen parameters are used as above.
Hides the docked window. While you can call QWidget::hide() on the docked window, using this function will result in smoother screen updates.
Prevent application windows from being raised above the provided toplevel window. If an application window attempts to obscure any of the protected region, the protected window will immediately be raised above it.
Sets window as the lowest in the screen stacking order, below all normal and docked windows. This is normally used only for the QAbstractServerInterface widget.
Shows the docked window. While you can call QWidget::show() on the docked window, using this function may result in smoother screen updates.
Returns true if winId supports the Qt Extended soft menu bar via the QSoftMenuBar class; false otherwise.
Under QWS, this function always returns true. Under X11, it will return false if the application uses a widget toolkit other than that of Qtopia. The soft menu bar changes its behavior so that the "back" button will send a close message to the foreign application using closeWindow().
See also closeWindow().
Emitted whenever a window becomes active or the active window's caption changes. rect is the rectangle covered by the window.
Emitted whenever the active window caption changes.
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 qtextended4.4 | |
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