It is possible to do so, but the QDockWidget does not support this out of box. You will need to have a custom QDockWidget with a special button mechanism to hide / unhide, expect the button itself. That will mean that the dock widget will never be completely hidded, at-lest the button part of it will be visible.
Bookmarks