mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-24 23:31:32 +08:00
Updated user-guide.md
This commit is contained in:
parent
6846c96146
commit
044a43d793
@ -474,15 +474,17 @@ In the Advanced Docking System a central widget is a docking widget that is
|
|||||||
neither closable nor movable or floatable. A central widget has no title bar
|
neither closable nor movable or floatable. A central widget has no title bar
|
||||||
and so it is not possible for the user to hide, close or drag the central
|
and so it is not possible for the user to hide, close or drag the central
|
||||||
widget. If there is a central widget, then also the distribution of the sizes
|
widget. If there is a central widget, then also the distribution of the sizes
|
||||||
for the dock widgets around the central widget is different. If there is no
|
for the dock widgets around the central widget is different:
|
||||||
central widget and the main window is resized, then the available space is
|
|
||||||
distributed to all dock widgets. If a central widget exists, then only the
|
- **no central widget (default)** - on resizing the available space is
|
||||||
central widget is resized when resizing the main window. The dock widgets around
|
distributed to all dock widgets - the size of all dock widgets
|
||||||
the central widget keep their sizes. The following animation shows this:
|
shrinks or grows
|
||||||
|
- **with central widget** - on resizing only the central widget is resized - the
|
||||||
|
dock widgets around the central widget keep their size (see the animation below)
|
||||||
|
|
||||||
![Central Widget](central_widget.gif)
|
![Central Widget](central_widget.gif)
|
||||||
|
|
||||||
To set a centra widget, you just need to pass your central dock widget
|
To set a central widget, you just need to pass your central dock widget
|
||||||
to the dock manager `setCentralWidget` function:
|
to the dock manager `setCentralWidget` function:
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
|
Loading…
Reference in New Issue
Block a user