QGridLayout max column width
-
Do you want to distribute your program to others? Or are you the only one that is going to use it? I guess not.
In the first case you should consider the fact that others might want to use other fonts, and even bigger fonts. If your column width is not big enough for the bigger font you won't see it all. The purpose of Qt's layout system is to adapt automatically in this case.
That's the reason why QGridLayout only has setMinimumColumnWidth and no similar function for maximum width.
What you can do is use a widget for which you use setminimumsizehint. That way your column will adapt to the necessary space required to show that widget.