QDockWidget Class Reference |
Constant | Value | Description |
---|---|---|
QDockWidget::DockWidgetClosable | 0x01 | The dock widget can be closed. |
QDockWidget::DockWidgetMovable | 0x02 | The dock widget can be moved between docks by the user. |
QDockWidget::DockWidgetFloatable | 0x04 | The dock widget can be detached from the main window, and floated as an independent window. |
QDockWidget::AllDockWidgetFeatures | DockWidgetFeatureMask | The dock widget can be closed, moved, and floated. |
QDockWidget::NoDockWidgetFeatures | 0x00 | The dock widget cannot be closed, moved, or floated. |
The DockWidgetFeatures type is a typedef for QFlags<DockWidgetFeature>. It stores an OR combination of DockWidgetFeature values.
This property holds areas where the dock widget may be placed.
The default is Qt::AllDockWidgetAreas.
Access functions:
See also Qt::DockWidgetArea.
This property holds whether the dock widget is movable, closable, and floatable.
Access functions:
See also DockWidgetFeature.
This property holds whether the dock widget is floating.
A floating dock widget is presented to the user as an independent window "on top" of its parent QMainWindow, instead of being docked in the QMainWindow.
Access functions:
See also isWindow().
Access functions:
Constructs a QDockWidget with parent parent and window flags flags. The dock widget will be placed in the left dock widget area.
The window title is set to title. This title is used when the QDockWidget is docked and undocked. It is also used in the context menu provided by QMainWindow.
See also setWindowTitle().
Constructs a QDockWidget with parent parent and window flags flags. The dock widget will be placed in the left dock widget area.
Destroys the dock widget.
This signal is emitted when the allowedAreas property changes. The allowedAreas parameter gives the new value of the property.
This signal is emitted when the features property changes. The features parameter gives the new value of the property.
Returns true if this dock widget can be placed in the given area; otherwise returns false.
Sets the widget for the dock widget to widget.
See also widget().
Returns a checkable action that can be used to show or close this dock widget.
The action's text is set to the dock widget's window title.
See also QAction::text and QWidget::windowTitle.
This signal is emitted when the floating property changes. The topLevel parameter is true if the dock widget is now floating; otherwise it is false.
See also isWindow().
Returns the widget for the dock widget. This function returns zero if the widget has not been set.
See also setWidget().
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.1 | |
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