How to set de maximum width of a QGridLayout?
Hi all,
I am thinking in a QGridLayout with 4 QLineEdit horizontaly positioned, but I want the total size of the QGridLayout to be limited to 100, for example.
Is that possible?
I see the following, but do not understand how to deal with it.
Code:
quaternionLayout
->setSizeConstraint
(QLayout::SetMaximumSize());
Thanks in advance.
Re: How to set de maximum width of a QGridLayout?
Place the layout in the widget and set the maximum width for the widget to 100. However this is usually a bad idea to constrain widget sizes this way.