Iis there a way to "collapse" (roll up) a QDialog
or QMainWindow
to just it's title-bar?
The current solution is to use:
self.setMinimumHeight(0);
self.resize(self.width(), 1);
using a height of 0 i.e.
self.resize(self.width(), 0);
causes the dialog/window/widget to disappear!
(There is no show(..) hide() close..() or whatever event issued, also the dialog is not being destroyed, just disappears.)
If the dialog is rolled-up to 1-pixel, the user can still re-size it manually to finally have only the title-bar (and some os-related frameborder, but content being not visible).
There are applications that can do this with any window but this should be a PyQt/Pyside only solution and it works, except that tiny little border..
(The idea is to basically mimic Softimages window-rollup for dialogs/tools, to preserve the dialog in a minimized (rolled up) state on the screen without having it to minimize to the bottom of the screen.)