You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, March 22nd 2010, 11:32am

QGLWidget problem

Hi all,

I've a problem with the QGLWidget. I've my QGLWidget as a central Widget of a QMainWindow. Because I need high screen resolution I put a scrool bar to go up and down in case the space of the central widget is smaller than the resolution I need.

The problem is that when I render my scene, pixels which are not visible from the central widget are not processed. Figure 1 of the attachment shows the result when the scroll bar is up. The bottom of the image is not processed (the not processed region is the region which is not seen in the central widget). In Figure2 I scroll down and the result is the whole image processed (int this case the pixels not processes are from the above region, but because there's no pixel to be processed there's no difference).

I really don't know why this happens. Is an openGL problem or is a QGLWidget problem? I tried compiling with the DEFINES += QT_GL_NO_SCISSOR_TEST but it still doesn't work.

Any help will be very appreciated.

Thank you.
nachovallGGG has attached the following files:
  • figure1.jpg (1.3 kB - 127 times downloaded - latest: Jan 16th 2012, 3:14pm)
  • figure2.jpg (1.4 kB - 126 times downloaded - latest: Jan 16th 2012, 3:13pm)