Fix invisible window with Qt 5.6
Review Request #127847 - Created May 5, 2016 and submitted
Since Qt 5.6,
minimumSize()returns an empty size (
This cause an invisible main window in KCalc, due to a
This (new?) behavior is documented in the QWidget api, so it doesn't look like a bug in Qt.
The proper way to set a fixed size (based on the actual content) is to use
QLayout::setSizeConstraint(), as suggested by the documentation of
KCalc is now visible again with Qt 5.6. The main window size is fixed as before.