There's actually only 2 types of setMinimumSize. QSize minimumSize() const
is an accessor which returns the current minimum size. It does not allow you to set the minimum size.
The first, void setMinimumSize(const QSize&)
, takes a QSize, which is essentially just a width and a height packaged together. It accepts the QSize by const reference, because that's the standard way for Qt's functions to accept objects. Details on why they might follow that practice be found in this answer.
The second, void setMinimumSize(int minw, int minh)
takes a width and a height as a pair of parameters.
There's no difference between the two. They just provide two functions as a convenience, in case you already have a QSize to pass to it, or you already have a pair of integers. Your example is a case of the former, and it should work exactly as you expect.