Skip to content

Commit c530a4a

Browse files
Added documentation for dynamic creation of dock widgets
1 parent 2378f46 commit c530a4a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,16 @@ The drag preview widget can be configured by a number of global dock manager fla
8282
The best way to test non-opaque undocking is to set the standard flags: `CDockManager::setConfigFlags(CDockManager::DefaultNonOpaqueConfig)`.
8383

8484
### Tab-menu for easy handling of many tabbed dock widgets
85-
Tabs are a good way to quickly switch between dockwidgets in a dockarea. However, if the number of dockwidgets is too large, this may affect the usability of the tab bar. To keep track in this situation, you can use the tab menu. The menu allows you to quickly select the dockwidget you want to activate from a drop down menu.
85+
Tabs are a good way to quickly switch between dockwidgets in a dockarea. However, if the number of dockwidgets in a dockarea is too large, this may affect the usability of the tab bar. To keep track in this situation, you can use the tab menu. The menu allows you to quickly select the dockwidget you want to activate from a drop down menu.
8686

8787
### Many different ways to detach dock widgets
88+
You can detach dock widgets and also dock areas in the following ways:
89+
- by dragging the dock widget tab or the dock area title bar
90+
- by double clicking the tab or title bar
91+
- by using the detach menu entry from the tab and title bar drop down menu
92+
8893
### Supports deletion of dynamically created dock widgets
94+
Normally clicking the close button of a dock widget will just hide the widget and the user can show it again using the toggleView() action of the dock widget. This is meant for user interfaces with a static amount of widgets. But the advanced docking system also supports dynamic dock widgets that will get deleted on close. If you set the dock widget flag `DockWidgetDeleteOnClose` for a certain dock widget, then it will be deleted as soon as you close this dock widget. This enables the implementation of user interfaces with dynamically created editors, like in word processing applications or source code development tools.
8995

9096
## Tested Compatible Environments
9197
### Windows

0 commit comments

Comments
 (0)