📜  从布局中删除项目 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:45.395000             🧑  作者: Mango

代码示例1
QLayoutItem* item;
while ( ( item = layout->takeAt( 0 ) ) != NULL )
{
    delete item->widget();
    delete item;
}
delete m_view->layout();