Any Ideas here? I have my layouts, but I still don't know how to delete (or hide) them from the rootLayout.
//creates 5 QHBoxLayouts
for(int a=0; a<5; a++)
{
createLayouts(a);
}
rootLayout->addLayout(layout[0]); //only adds the first layout
// function() will hide/remove "layout[0]" and show/add layout[1]
connect(mainButton1, SIGNAL(clicked()), this, SLOT(function()));
//creates 5 QHBoxLayouts
for(int a=0; a<5; a++)
{
createLayouts(a);
}
rootLayout->addLayout(layout[0]); //only adds the first layout
// function() will hide/remove "layout[0]" and show/add layout[1]
connect(mainButton1, SIGNAL(clicked()), this, SLOT(function()));
To copy to clipboard, switch view to plain text mode
but I don't see a way to hide or remove the first layout[0]
Bookmarks