Morten Eriksen wrote:
On Sat, 30 Oct 2004, Tomás Aguado Gómez wrote:
Well, the problem is that when I want to delete a node, I select the
Qlistview, press de delete button,..I go to the map and I say--->
mapQTCOIN[QListviewITEM]->unref(); and the Sphere, Cylinder,... stays in
the scene smiling at me, and the reference count doesn't decrease!! it
stays in 1. Any ideas?
Remember that the node's parent will have a reference to the node, and has
upped the child's reference count by 1 when it was added into the scene
graph.
Morten
Hi Morten:
Yesterday I changed my code, and now the count reference (I see it with
the get Count reference Method) goes to zero when I "unref()" the
node, but the element (for example an sphere) stills remains there, as
I read in the inventor Mentor, if you unref() and the count reference
goes to zero the node is deleted from the scene.
Thanks Morten!.
Tomás Aguado Gómez
Division de Arquitectura de Computadores
Grupo de Modelado y realidad virtual
http://dac.escet.urjc.es/investigacion/GMRV/
|
|