layout应该怎么删除

3.0rc1
addChild(layout);没问题
removeChild(layout)有问题
layout->removeFromParent也有问题
这是为啥,明明都是继承与node却不被识别

最后再调用一下layout->clear();