Hi, Just thought I would mention that I am having similar issues (where the first osg window is responsive instantaneously and successively created windows can take anywhere from a few seconds to a few minutes to become responsive). My setup seems to be different though -- in my case I have a main window which does not do any osg stuff, and then I create other QMainWindow-derived classes which I use to display simulation visualisations. Each of the simulation window classes inherits from both QMainWindow and CompositeViewer (i.e. I have several composite viewers, not several views from a single composite viewer). The reason I did this was due to many issues with multi-threading when I used a single compositeviewer with different views -- the only threading model that worked here was SingleThreaded since choosing any other model would cause crashes. When I used the single composite viewer I also noted that the stats-viewer only ever displays in the first window -- this can be seen in the osgviewerQt example application as well, though I have not tried to debug this at all. This same example application seems to handle multiple pop-ups quite well (at nice high frame-rates) which I am unable to obtain with my multiple composite-viewer method which is one of the reasons I think I am doing something silly.
I should mention that I am still fairly new to osg and osgQt and graphics programming in general and all of these issues are more than likely due to me doing something silly. Unfortunately I have had to temporarily stop debugging this issue as more urgent work has come up, though I am very keen to hear what others have to say on the matter. I saw a post in the mailing list archive at which might lead to a solution, though I have not had the opportunity to try it out yet and judging by the dates and discussion it seems it also pre-dates the current osgQt implementation quite a bit. Here is a link: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2007-December/005676.html I am the process of building a 2.9.? release of osg (I am using 3.0.1) to see if the older version has any effect. I wanted to post a sample app, but unfortunately it is not as easy as I had hoped. Cheers, Chris On Mon, Sep 26, 2011 at 10:01 PM, Robert Osfield <[email protected]>wrote: > Hi Andre, > > I'm not a Qt guru, and am not the author of osgQt so can't provide > guidance to the ins and out of Qt. Hopefully those more knowledgeable > of Qt will be able to chip in. > > Robert. > > On Mon, Sep 26, 2011 at 7:29 PM, Andre Simoes <[email protected]> > wrote: > > Hi Robert. > > > > I'm working with a qtOsg application that uses internal windows. > > > > Each window represents a viewer thats is being managed by a composite > viewer. > > > > 1 - The program starts with no scenario windows > > 2 - I can add or remove Windows with a new/open file operation. > > 3 - for the first window to be opened everything works perfect > > regarding events ( mouse click, mouse press, drag, etc ). > > 4 - For all the others i have to wait a time till the event handler > > starts to work. Sometimes, It takes more than 5 seconds. > > > > Do i have to force some call to make the current window active > > together with its current viewer's event handler ? > > > > When using osg 2.9.15 i had no trouble with this. > > > > Now I'm using osg 3.0.1 > > > > My friends have reported me the same problem in version 3.0.0. > > > > Regards > > Andre > > _______________________________________________ > > osg-users mailing list > > [email protected] > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

