Hi,
I have used class ViewerWidget(: public QWidget, public
osgViewer::CompositeViewer) to integrate OSG into a QT application. Like this:
viewer3DWindow = new ViewerWidget;
QMdiSubWindow *tmpsubwin_3D = new QMdiSubWindow ;
tmpsubwin_3D->setWidget(viewer3DWindow);
And there are other QT GUIs like QT::Dialog,QT::LineEdit etc,they are in
the same application but in different QMdiSubWindow.
When our 3D widget (osg widget) has a lot of thing to render,the frame is
down to 10 fps or even lower.It is totally acceptable for the 3D widget.
However,the GUI widget seems also have low performance as the 3D widget.For
example,when we tap some words to a QT::LineEdit,it take a long time to react
our input.
When 3D widget's frame back to normal,the QT GUI widget's performance is
back to normal too.
So it looks like the 3D OSG widget and QT GUI widget share the same graphic
resource .When cpu or gpu usage is high,the 3D OSG widget try it best to keep
performance ,while the QT GUI widget dose not have enough
resource to react.
We use linux.Any advice?
...
Thank you!
Cheers,
Lv
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69092#69092
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org