From b6b4c626e83e6046597f29d9c92e4f3d06e0c62e Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Sat, 16 Jan 2021 15:06:32 +0100 Subject: [PATCH] Fixed user-guide.md emptydockarea code to match the real example --- doc/user-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/user-guide.md b/doc/user-guide.md index 1da6ef3..a7492ca 100644 --- a/doc/user-guide.md +++ b/doc/user-guide.md @@ -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