I was able to solve the issue only by directly managing the undock event. When the undock event is emitted a QDialog object is created and the widget is set to it. When the undock event is emitted from the QDialog object, the widget is set back to the QTabWidget.
Bookmarks