Skip to content

Commit ab385a7

Browse files
Updated user-guid
1 parent c370875 commit ab385a7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/user-guide.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,13 @@ auto* CentralDockArea = DockManager->setCentralWidget(CentralDockWidget);
493493

494494
See the `centralwidget` example to learn how it works.
495495

496+
<div style="background: #fff6e8; border: 1px solid #ffa51a; padding: 6px;">
497+
The central widget needs to be the first dock widget that is added to the
498+
dock manager. The function does not work and returns a nullptr if there
499+
are already other dock widgets registered. So setCentralWidget should be
500+
the first function when adding dock widgets.
501+
</div>
502+
496503
## Styling
497504

498505
The Advanced Docking System supports styling via [Qt Style Sheets](https://doc.qt.io/qt-5/stylesheet.html). All components like splitters, tabs, buttons, titlebar and

0 commit comments

Comments
 (0)