// 布局中第一个元素不显示到界面
QWidget *p = vbox->itemAt(0)->widget();
p->setParent(NULL);
// An highlighted block
var foo = 'bar';
//清空horizontalLayout布局内的所有元素
QLayoutItem *child;
while ((child = vbox_customplot->takeAt(0)) != 0)
{
//setParent为NULL,防止删除之后界面不消失
if(child->widget())
{
child->widget()->setParent(NULL);
}
delete child;
}