Qt 6.11 is out! See what's new in the release
blog
How Do I add dockwidget in stackedwidget?
General and Desktop
3
Posts
3
Posters
1.0k
Views
2
Watching
-
Hi, friend. Are you try
addWidget?int QStackedWidget::addWidget(QWidget *widget)
Appends the given widget to theQStackedWidgetand returns the index position. Ownership of widget is passed on to theQStackedWidget.
If theQStackedWidgetis empty before this function is called,widget becomes the current widget.
See alsoinsertWidget(),removeWidget(), andsetCurrentWidget().From the Qt Help manual.
Also, you can show some code for here! -
Hi,
Why do you want to put a QDockWidget in a QStackedWidget ?
QMainWindow already handles stacking of several QDockWidgets.