Delete stretches from layout
-
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.