Hi!

I have a QHBoxLayout in which I store QVBoxLayout, but I want to delete at any given time. For this use the following method:

if (layerH)// QHBoxLayout
{
while(layerH->takeAt(0) != 0)
{
layerH->removeItem(layerH->takeAt(0));
delete layerH->takeAt(0);
}
}

The problem is that after executing this function the QVBoxLayout are still present.

any idea how to fix this?