info-inventor-dev
[Top] [All Lists]

Re: QT+COIN

To: Morten Eriksen <mortene@xxxxxx>, info-inventor-dev@xxxxxxxxxxx
Subject: Re: QT+COIN
From: Tomás Aguado Gómez <tomas.aguado@xxxxxxxxxxxxxx>
Date: Mon, 01 Nov 2004 15:03:15 +0100
In-reply-to: <Pine.LNX.4.58.0411011204220.21479@valhalla.trh.sim.no>
References: <4180B321.7080803@mi.madritel.es> <20041028110113.GF20769@sim.no> <41836F5C.1050607@mi.madritel.es> <Pine.LNX.4.58.0411011204220.21479@valhalla.trh.sim.no>
Sender: info-inventor-dev-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 0.8 (X11/20040926)
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/
<Prev in Thread] Current Thread [Next in Thread>