Qt QDockWidget doesn't have that feature. You would have to implement it yourself