Hi Wang Rui,

Sorry about the very long delay on reviewing this example, just dug it
up from my email archives.  I've taken the latest code drop from this
thread and merged it with svn/trunk and checked it in.    I got Qt
makeCurrent errors and crash after the first frame if I just used the
code directly, and had to set the viewer widget to run SingleThreaded
to get it work without problems. Using SingleThreaded does mean the
performance isn't great though, but this might be down to the ATI
driver not working well with multiple contexts on my Linux machine.

Cheers,
Robert.

On Wed, Jun 24, 2009 at 2:38 PM, Wang Rui <[email protected]> wrote:
> Hi all,
>
> I've just made another OSG+Qt (GUI) examples to demonstrate how to create
> OSG views, add them to a CompositeViewer, and add corresponding widgets to
> Qt layouts or as popup windows. The example inherits a GraphicsWindowQt from
> the GraphicsWindow base class and implements most of the virtual methods. A
> QGLWidget is created at the same time to perform keyboards and mouse events,
> who is also added as the main widget's child.
>
> The new example, named osgviewerQtContext (because of deriving from
> GraphicsContext), works fine on Windows XP SP3 and Qt 4.5.0, with 4 widgets
> in QGridLayout and a popup window and 60Hz frame rate. I haven't tested it
> on Unix/Linux and Mac OSX yet. So any feedback from these platforms is
> appreciated. I wish this example be a useful complement to current
> osgviewerQt and osgviewerQtWidgets ones. :)
>
> Some unfinished functionalities: inheritedWindowData, sharedContext, and
> more tests needed.
>
> Cheers,
>
> Wang Rui
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to