jackajack01
2nd August 2012, 14:47
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?
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?