When we add a node to a group it is necessary to write htese two lines : gR->addsubNodes(cnL); cnL->addgroups(gR); The second line may by realize during addsubNodes call