That explains the behaviour. StackWidget is supposed to show one widget at a time. You DONT need to add dock widget to stack widget.Anyway, I have main window with QStackedWidget inside, one widget in QStackedWidget contains QDockWidget.
You are required to add dock widget to main window, see QMainWindow::addDockWidget
Bookmarks