Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions | ![]() |
The QDockWindow class provides a widget that can be docked inside a QMainWindow or floated as a top-level window on the desktop. More...
#include <QDockWindow>
Inherits QFrame.
The QDockWindow class provides a widget that can be docked inside a QMainWindow or floated as a top-level window on the desktop.
QDockWindow provides the concept of dock windows, also know as tool palettes or utility windows. Dock windows are secondary windows placed in the dock window area around the center widget in a QMainWindow.
### mainwindow diagram showing the various areas of the mainwindow should go here - see below
Dock windows can be moved inside their current area, moved into new areas and floated (e.g. undocked) by the end-user. The QDockWindow API allows the programmer to restrict the dock windows ability to move, float and close, as well as the areas in which they can be placed.
A QDockWindow consists of a title bar and the content area. The titlebar displays the dock windows window title, a float button and a close button. Depending on the state of the QDockWindow, the float and close buttons may be either disabled or not shown at all.
The visual appearance of the title bar and buttons is style dependent.
### screenshot of QDockWindow in a few styles should go here
See also QMainWindow.
QDockWindow::DockWindowClosable | The dock window can be closed. |
QDockWindow::DockWindowMovable | The dock window can be moved between docks by the user. |
QDockWindow::DockWindowFloatable | The dock window can be detached from the main window, and floated as an independent window. |
QDockWindow::AllDockWindowFeatures | The dock window can be closed, moved, and floated. |
QDockWindow::NoDockWindowFeatures | The dock window cannot be closed, moved, or floated. |
The DockWindowFeatures typedef can store a combination of DockWindowFeature values.
This property holds areas where the dock window may be placed.
The default is Qt::AllDockWindowAreas.
Access functions:
See also QDockWindow::area.
This property holds area where the dock window is current placed.
The default is Qt::DockWindowAreaLeft.
Access functions:
See also QDockWindow::allowedAreas.
This property holds whether the dock window is movable, closable, and floatable.
Access functions:
See also DockWindowFeature, setFeature(), and hasFeature().
Constructs a QDockWindow with parent parent and widget flags flags. The dock window will be placed in the left dock window area.
Constructs a QDockWindow with parent parent, placed in area and with widget flags flags.
Destroys the dock window.
Returns true if this dock window can be placed in the given area; otherwise returns false.
Returns the main window for this dock window.
See also setParent().
Sets the main window for this dock window to parent.
See also mainWindow().
Sets the widget for the dock window to widget.
See also widget().
Returns the widget for the dock window. This function returns zero if the widget has not been set.
See also setWidget().
Copyright © 2004 Trolltech. | Trademarks | Qt 4.0.0-tp2 |