Delete stretches from layout
-
Is anybody know, how I can remove stretches from layout after QBoxLayout::addStretch()?
-
I think QLayout::takeAt() should do what you want, but you need to know the index of the item in the layout. That could be errorphrone, as that index is not returned to you directly. You will first have to search for it, perhaps by iterating over the QLayoutItems in the layout and checking the type of each item you find.
-
Thank you for your answer. It's very helpful for me.