[Qt-interest] QGLFrameBufferObject with parent window

xstamatopoulos at gmail.com xstamatopoulos at gmail.com
Tue Dec 30 05:02:34 CET 2008


Greetings everyone,
I have been trying to set up a FrameBuffer object (FBo) using  
QGLFrameBuffer.
Until recently i thought that something was wrong in my code since i am a  
newbie in openGL (and still learning Qt :P ).
By debugging i found that the problem was when i was trying to bind the  
FBo ( fb0->bind() ). On a sidenote when i try to run the program it  
crashes...
However this never failed in the examples that Qt provides so after  
looking into it, i understood that the problem existed only when using  
QMainWindow. In my project i have a QMainWindow where the central widget  
is the qglwidget which contains the QGLFrameBuffer object.
What can i do to make it run even when it has a parent ?

The examples that qt provides for qglframebuffer object don't have a  
parent and everything works ok. Just to prove to myself that i was still  
sane :P i added those widgets to a qmainwindow and the bind() failed again  
as expected.

I really don't have any idea on how to sort this so i would be more than  
grateful if someone could provide help !

Thank you in advance



More information about the Qt-interest-old mailing list