[Qt-interest] glRasterPosi Problem in QGLWIdget

Rosália G. Schneider rosaliaschneider at gmail.com
Wed Nov 25 13:13:35 CET 2009


Hi,

When I resize my QGLWidget window, my glRasterPosi(0, 0) stops being valid.
I posted this question about this a few days ago, but I was told this should
be an OpenGL problem.
I added the following code:

 for(int x = -1000; x <= 1000; ++x) {
            for(int y = -1000; y <= 1000; ++y) {
                glRasterPos2i(x, y);
                glGetBooleanv(GL_CURRENT_RASTER_POSITION_VALID, &test);
                if(test == true)
                break;
            }
            if(test == true)
                break;
        }

and discovered the lower-left corner has now the coordinates (335, 556),
which happen to be the width and height of the QGLWidget / 2 after
maximized. Then it works. If I resize my window back, than no glRasterPosi
between (-1000, -1000) and (1000, 1000) is valid anymore. This doesn't look
as an OpenGL issue to me.

Has anyone ever had a similar problem? Or a situation where this didn't
happen? If the latter is true, would you please send me an example showing
this works?

Thanks,
Rosália
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091125/df53fb68/attachment.html 


More information about the Qt-interest-old mailing list