QDockWidget is not getting closed if it is floating

Printable View