Hello:

I keep a min widht and height for the scen graph in the GlWidget I have. So when overriding the virtual method resizeGl(int width, int height) I have something like:

if(width < minWidth) width = minWidth;
if(height < minHeight) height = minHeight;

// now set the viewport as normal
//

return;


On Mar 29, 2007, at 9:53 AM, xiaoshuxing wrote:

I'm using the simplerviewerQT4 of the OSG examples.
What should I back up?
What's the possible variables that may cause this scenario? Please give me
some clue so that I know what variable to watch in the debugging mode.
Thanks.

-----邮件原件-----
发件人: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 代表 Robert Osfield
发送时间: Thursday, March 29, 2007 9:38 PM
收件人: osg users
主题: Re: [osg-users] help about QGLWidget

Hi,

I wonder if the viewport is being scaled to 0 width and no moving back
up, or perhaps the projection matrix is ending up at zero.

You haven't specified how you've integrated with the OSG so I don't
what to recommend.

Robert.

On 3/29/07, xiaoshuxing <[EMAIL PROTECTED]> wrote:




I'm writing a test program with OSG in QT4 based windowing system.



Here's what I did:

         I loaded a scene, it showed well.

         I resized the QGLWidget using a QSplitter, it acts well.

        But after I drag the splitter to the very left to resize the
QGLWidget to zero width, and then I drag it back, the scene disappears, I tracked down in debugging mode, the scene is still in the widget, but why
it
didn't show?



Could anyone please give me some clue, it's driving me crazy.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to