mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 13:15:43 +08:00
Fixed user-guide.md emptydockarea code to match the real example
This commit is contained in:
parent
bd41ec1627
commit
b6b4c626e8
@ -524,8 +524,8 @@ label->setText("This is a DockArea which is always visible, even if it does not
|
||||
label->setAlignment(Qt::AlignCenter);
|
||||
CDockWidget* CentralDockWidget = new CDockWidget("CentralWidget");
|
||||
CentralDockWidget->setWidget(label);
|
||||
CentralDockWidget->setFeature(ads::CDockWidget::NoTab, true);// set the flag before adding the widget to dock manager
|
||||
auto* CentralDockArea = DockManager->setCentralWidget(CentralDockWidget);
|
||||
CentralDockWidget->setFeature(ads::CDockWidget::NoTab, true);
|
||||
```
|
||||
|
||||
## Custom Close Handling
|
||||
|
Loading…
Reference in New Issue
Block a user