[Qt-interest] QGLFrameBufferObject with parent window

Christos Stamatopoulos xstamatopoulos at gmail.com
Tue Dec 30 10:03:47 CET 2008


test

On Tue, 30 Dec 2008 15:02:34 +1100, <xstamatopoulos at gmail.com> wrote:

> 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