File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -286,8 +286,9 @@ MainWindow::MainWindow(QWidget *parent) :
286
286
{
287
287
ui->setupUi(this);
288
288
289
- // Create the dock manager. Because the parent parameter is a QMainWindow
290
- // the dock manager registers itself as the central widget.
289
+ // Create the dock manager after the ui is setup. Because the
290
+ // parent parameter is a QMainWindow the dock manager registers
291
+ // itself as the central widget as such the ui must be set up first.
291
292
m_DockManager = new ads::CDockManager(this);
292
293
293
294
// Create example content label - this can be any application specific
Original file line number Diff line number Diff line change @@ -52,9 +52,10 @@ configuration will be explained in detail in the following sections.
52
52
53
53
### Setting Configuration Flags
54
54
55
- You should set the configuration flags before you create the dock manager
56
- instance. That means, setting the configurations flags is the first thing
57
- you do, if you use the library.
55
+ You must set the configuration flags before creating the dock manager
56
+ instance otherwise the manager will not be created correctly and will
57
+ crash upon being created. That means, setting the configurations flags
58
+ is the first thing you must do, if you use the library.
58
59
59
60
``` c++
60
61
CDockManager::setConfigFlags (CDockManager::DefaultOpaqueConfig);
You can’t perform that action at this time.
0 commit comments