QWorkspace Class Reference |
If you want your users to be able to work with child windows larger than the visible workspace area, set the scrollBarsEnabled property to true.
See also QDockWidget and MDI Example.
Specifies the order in which child windows are returned from windowList().
Constant | Value | Description |
---|---|---|
QWorkspace::CreationOrder | 0 | The windows are returned in the order of their creation |
QWorkspace::StackingOrder | 1 | The windows are returned in the order of their stacking |
This property holds the workspace's background.
Access functions:
This property holds whether the workspace provides scroll bars.
If this property is true, the workspace will provide scroll bars if any of the child windows extend beyond the edges of the visible workspace. The workspace area will automatically increase to contain child windows if they are resized beyond the right or bottom edges of the visible area.
If this property is false (the default), resizing child windows out of the visible area of the workspace is not permitted, although it is still possible to position them partially outside the visible area.
Access functions:
Constructs a workspace with the given parent.
Destroys the workspace and frees any allocated resources.
Gives the input focus to the next window in the list of child windows.
See also activatePreviousWindow().
Gives the input focus to the previous window in the list of child windows.
See also activateNextWindow().
Returns a pointer to the widget corresponding to the active child window, or 0 if no window is active.
See also setActiveWindow().
Adds widget w as new sub window to the workspace. If flags are non-zero, they will override the flags set on the widget.
Returns the widget used for the window frame.
To remove the widget w from the workspace, simply call setParent() with the new parent (or 0 to make it a stand-alone window).
Arranges all iconified windows at the bottom of the workspace.
See also cascade() and tile().
Arranges all the child windows in a cascade pattern.
See also tile() and arrangeIcons().
Closes the child window that is currently active.
See also closeAllWindows().
Closes all child windows.
If any child window fails to accept the close event, the remaining windows will remain open.
See also closeActiveWindow().
Makes the child window that contains w the active child window.
See also activeWindow().
Arranges all child windows in a tile pattern.
See also cascade() and arrangeIcons().
This signal is emitted when the child window w becomes active. Note that w can be 0, and that more than one signal may be emitted for a single activation event.
See also activeWindow() and windowList().
Returns a list of all visible or minimized child windows. If order is CreationOrder (the default), the windows are listed in the order in which they were inserted into the workspace. If order is StackingOrder, the windows are listed in their stacking order, with the topmost window as the last item in the list.
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.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