Oct-09-2022, 11:10 AM
I noticed that the minimum size of a layout is related to its contents margins. All layouts have
contentsMargins(9, 9, 9, 9)
by default. So that means a minimum size of QSize(18, 18)
. Oddness is that that is true for QGridLayoyts, but for QVBoxLayout's, the default minimum size is QSize(22, 22)
. Where does the extra 4 for width and height come from? I assume it is left 2, top 2, right 2, and bottom 2. Where are those 2 pixels coming from? I haven't checked a QHBoxLayout, or QBoxLayout yet, but they should fall under being the sum of it margins, or close to it.