Tabify 3 QDockWidget
问题 How can I create a tabified dock for 3 widgets in QMainWindow? I'm using the code bellow: widget1 = new QDockWidget(this); widget1 ->setObjectName("name1"); addDockWidget(Qt::LeftDockWidgetArea, widget1); widget2 = new QDockWidget(this); widget2 ->setObjectName("name2"); addDockWidget(Qt::LeftDockWidgetArea, widget2); tabifyDockWidget(widget2, widget1); widget3 = new QDockWidget(this); widget3->setObjectName("name3"); addDockWidget(Qt::LeftDockWidgetArea, widget3); tabifyDockWidget(widget3,