Updated examples and demo to use createDockWidget() function for dock manager instead of deprecated DockWidgetr constructor

This commit is contained in:
Uwe Kindler
2025-06-12 14:50:16 +02:00
parent 79c208da4f
commit c135782001
10 changed files with 27 additions and 30 deletions

View File

@@ -24,7 +24,7 @@ MainWindow::MainWindow(QWidget *parent) :
// Create a dock widget with the title Label 1 and set the created label
// as the dock widget content
ads::CDockWidget* DockWidget = new ads::CDockWidget("Label 1");
ads::CDockWidget* DockWidget = m_DockManager->createDockWidget("Label 1");
DockWidget->setWidget(l);
// Add the toggleViewAction of the dock widget to the menu to give