Why don't you use QGLWidget::grabFrameBuffer()?
Why don't you use QGLWidget::grabFrameBuffer()?
wysota: This is not the problem because i have not modified my computer.
wysota and jpn: If i used upper letter dont work.
minimoog: Because I need to resize image.
I know whats the problem but I dont know how to correct it. The problem is that if i create an object at first (in this function initializeGL()) works fine, but if i create an object from a file after initializeGL() dont work.
I have read that renderPixmap run initializeGL, PaintGL and resizeGL, and thats the problem. I create an object out of this functions (reading from a file).
I wish i explain well.
One question about the forum.
Green light on near the username is that the user is online?
Heh, you can use OpenGL to resize image for free (in your case just change the viewport). Or you can use render_to_texture (Framebuffer Object), or you can read directly the pixels with glReadPixels.
Anyway, if you use renderPixmap, make sure that OpenGL initialization code (like setting perspective matrices, display lists) are in InitializeGL().
Bookmarks