<div dir="ltr"><div dir="ltr">On Sat, 28 Nov 2020 at 06:47, OpenSceneGraph Users <<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p>Is there a problem with adding or removing OSG nodes directly in the Qt Widget events?  </p></blockquote><div><br></div><div>If your application is running single threaded then adding/removing objects from the scene graph should not be an issue.  It'll only be something to be careful about when the application is multi-threaded.  The Qt aspect should not have any bearing on the operation as long as race condition isn't introduced.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p>My idea is to send OSG USER events to complete the operation of adding and removing OSG nodes.</p></blockquote><div><br></div><div>Technically you could do it, I don't know why you think it's useful, it's not something I know of others doing.  This is entirely something your application will be doing, you can't ask use about how your code works or doesn't work.</div><div><br></div><div> Perhaps a far better thing to do would be to take a big step back and rather aks about implementation details on a "solution" to a problem you've dreamed up and only lives in your code, tell us about what you want your application to do at a high level,  Perhaps then we can just tell you what is normally done in this situation. </div></div></div>