Hello Johannes, On 11/18/2010 06:19 AM, Schaefer Johannes wrote: > in my application i am using two Qt QGLWidget Widgets with a OpenSG > PassiveWindows (similar to the example > http://www.opensg.org/htdocs/doc-1.8/QT.html#TutorialQTPassiveWindow ). > My problem is that there are some bad influence between the two widgets. > > For example: In the QGLWidget of the main window is a second viewport > for a on screen menu. The second QGLWidget is a file preview in an > object create dialog. When I am create a torus (makeTorus) in the second > widget and changing the rings or sides the second ViewPort > disappearances. There are some other problems between the two windows, > but it seems there is no clear barrier between the both widgets.
hm, when you say the second viewport disappears do you mean it is not redrawn, is removed from the window's MFPorts field? > Any Idea how to solve this problem? as a first step I'd suggest trying to find out on which widgets Qt issues paint() commands (not completely sure if Qt calls it paint() or redraw() or something else) to request that they get redrawn. If you use 2 PassiveWindows you are telling OpenSG that you are having 2 OpenGL contexts, is that how you create the widgets, i.e. with separate OpenGL contexts? Otherwise I could imagine that the context from one widget gets hijacked by the other. Cheers, Carsten ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users