[SOLVED] QMainWindow doesn't resize to minimum
-
I have the same task, or very look like : http://developer.qt.nokia.com/forums/viewthread/8716 . I use resize method bu it not resized my height to minimum or even I make resize (QSize(200,0)); the height is not minimum as possible. if I use sizeHint() it works but after some number of openings, closings of dock widget it also don't work. So how can I hide or minimize work are of my main window leave only toolBars and status bars and hide non used are.
-
Strange, but if I use that:
@void PlayerWidget::onCloseDock(bool visible)
{
if(visible)
resize(width(),sizeHint().height());
else
resize(QSize(width(),minimumHeight()));
}@
it works. I mean it works well when I'm set width() and minimumHeight() as size but not as minimumSize(). So It's solved :)